#StackBounty: #kubuntu #multiple-monitors #hdmi #thinkpad Why can't I (still) get my external monitor to work through HDMI? (Thinkp…

Bounty: 50

For a couple of years now I haven’t been able to get my LG Flatron W2261VP to work as an external monitor for my ThinkPad T460s running Kubuntu (currently 18.04.3 with Kernel 4.15.0). It’s connected through HDMI since the T460S doesn’t have a VGA slot.

In the beginning, I plugged in the HDMI cable and the monitor was recognized in the system settings, but I couldn’t turn it on. Every once in a while I tried again and sometimes the monitor didn’t even appear in the system settings. Currently it does. But as soon as I plug in the cable, the system partly freezes/slows down and it’s impossible to work, because the laptop monitor turns black every couple of seconds. The external monitor remains black and sometimes displays a messages about HDMI power saving mode.

I have been able to connect other external monitors through HDMI though. I also checked the cable with another machine. For a short time, when Kernel 4.10 was installed, the problem disappeared (see Can't get external monitor to work through HDMI (Thinkpad T460s, Kubuntu)).

I have also tried using the monitor with Live USB (both Ubuntu 18.04 and Kubuntu 18.04), but the problem is the same.

Any ideas for a solution? I attach some command results.

$ uname -rm
4.15.0-34-generic x86_64

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

$ lspci -nnk | grep -i VGA -A2
00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07)
Subsystem: Lenovo Skylake GT2 [HD Graphics 520] [17aa:2233]
Kernel driver in use: i915

$ sudo lshw -c video
  *-display                 
       Beschreibung: VGA compatible controller
       Produkt: Skylake GT2 [HD Graphics 520]
       Hersteller: Intel Corporation
       Physische ID: 2
       Bus-Informationen: pci@0000:00:02.0
       Version: 07
       Breite: 64 bits
       Takt: 33MHz
       Fähigkeiten: pciexpress msi pm vga_controller bus_master cap_list rom
       Konfiguration: driver=i915 latency=0
       Ressourcen: irq:124 memory:f0000000-f0ffffff memory:e0000000-efffffff ioport:e000(Größe=64) memory:c0000-dffff

$ xrandr 
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
   2560x1440     60.00 +  48.00    59.95  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     59.97*   59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected (normal left inverted right x axis y axis)
   1920x1080     59.93 +  60.00    60.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1280x1024     60.02  
   1280x960      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94

This is the syslog from the moment I plug in the cable:
https://paste.ubuntu.com/p/qtJJ8tzQ4K/

I have tried deleting ./local/share/kscreen as suggested here:
https://bugs.kde.org/show_bug.cgi?id=353637
But that didn’t help.


Get this bounty!!!

#StackBounty: #bluetooth #pi-4 #raspbian-buster Bluetooth headset paired and connected, but can't be selected as audio output

Bounty: 100

I’m stuck trying a pretty standard A2DP Bluetooth headset to work with Raspbian Buster on an RPi 4. I successfully paired it with the RPi and can connect it via the GUI, and the buttons on the headset can control the playback in VLC for instance. However, when I select it as an audio output in Volume Control applet, the green checkmark stays on “HDMI”, which is the other audio output I have.

I would like to keep using bluealsa (which I assume is the default on Buster) and avoid installing pulse if possible. I use the built-in BT adapter, and WiFi is disabled. AFAIK I didn’t change any audio/BT-related config files.

I’m not sure which log I could provide, for a start there’s that:

hcitool con

Connections:
    < ACL 00:15:01:02:DE:02 handle 12 state 1 lm MASTER AUTH ENCRYPT 

service bluealsa status

● bluealsa.service - BluezALSA proxy
   Loaded: loaded (/lib/systemd/system/bluealsa.service; static; vendor preset: enabled)
   Active: active (running) since Mon 2019-09-23 20:18:37 CEST; 10min ago
 Main PID: 3789 (bluealsa)
    Tasks: 3 (limit: 4915)
   Memory: 868.0K
   CGroup: /system.slice/bluealsa.service
           └─3789 /usr/bin/bluealsa

Sep 23 20:18:37 raspberrypi systemd[1]: Started BluezALSA proxy.
Sep 23 20:19:16 raspberrypi bluealsa[3789]: /usr/bin/bluealsa: Unsupported AT message: CMD: command:+CLCC, value:(null)
Sep 23 20:19:16 raspberrypi bluealsa[3789]: /usr/bin/bluealsa: Unsupported AT message: SET: command:+CSRSF, value:0,0,0,1,0,0,0

service bluetooth status

● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2019-09-23 20:07:45 CEST; 10min ago
     Docs: man:bluetoothd(8)
 Main PID: 1007 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 4915)
   Memory: 2.2M
   CGroup: /system.slice/bluetooth.service
           └─1007 /usr/lib/bluetooth/bluetoothd

Sep 23 20:10:32 raspberrypi bluetoothd[1007]: Endpoint unregistered: sender=:1.24 path=/org/bluez/hci0/A2DP/SBC/Sink/1
Sep 23 20:10:33 raspberrypi bluetoothd[1007]: Endpoint registered: sender=:1.25 path=/org/bluez/hci0/A2DP/SBC/Source/1
Sep 23 20:18:37 raspberrypi bluetoothd[1007]: Endpoint unregistered: sender=:1.25 path=/org/bluez/hci0/A2DP/SBC/Source/1
Sep 23 20:18:37 raspberrypi bluetoothd[1007]: Endpoint registered: sender=:1.28 path=/org/bluez/hci0/A2DP/SBC/Source/1
Sep 23 20:18:37 raspberrypi bluetoothd[1007]: Unable to get connect data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connected (107)
Sep 23 20:18:48 raspberrypi bluetoothd[1007]: Unable to get connect data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connected (107)
Sep 23 20:18:50 raspberrypi bluetoothd[1007]: Unable to get connect data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connected (107)
Sep 23 20:19:11 raspberrypi bluetoothd[1007]: Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Sep 23 20:19:16 raspberrypi bluetoothd[1007]: Unable to get io data for Hands-Free Voice gateway: getpeername: Transport endpoint is not connected (107)

sudo dmesg -c

[  635.803532] Bluetooth: RFCOMM TTY layer initialized
[  635.803546] Bluetooth: RFCOMM socket layer initialized
[  635.803563] Bluetooth: RFCOMM ver 1.11
[  638.100771] input: 00:15:01:02:DE:02 as /devices/virtual/input/input7
[  669.713843] input: 00:15:01:02:DE:02 as /devices/virtual/input/input8


Get this bounty!!!

#StackBounty: #6.0-marshmallow What reasons would an Android Phone's Network Radio turn off Sporadically

Bounty: 50

I have an android phone that is experiencing an issue that I suspect is hardware related. Randomly, service will no longer work on the phone and the only way I have found to temporarily resolve the issue is to dial *#*#4636#*#* and manually turn the radio back on. This will restore functionality, but only temporarily. It seems to be indeterminate when it stop working again.

I can’t think of a good methodology to pinpoint the issue, so any insight would be helpful


Get this bounty!!!

#StackBounty: #6.0-marshmallow What reasons would an Android Phone's Network Radio turn off Sporadically

Bounty: 50

I have an android phone that is experiencing an issue that I suspect is hardware related. Randomly, service will no longer work on the phone and the only way I have found to temporarily resolve the issue is to dial *#*#4636#*#* and manually turn the radio back on. This will restore functionality, but only temporarily. It seems to be indeterminate when it stop working again.

I can’t think of a good methodology to pinpoint the issue, so any insight would be helpful


Get this bounty!!!

#StackBounty: #kubuntu #multiple-monitors #hdmi #thinkpad Why can't I (still) get my external monitor to work through HDMI? (Thinkp…

Bounty: 50

For a couple of years now I haven’t been able to get my LG Flatron W2261VP to work as an external monitor for my ThinkPad T460s running Kubuntu (currently 18.04.3 with Kernel 4.15.0). It’s connected through HDMI since the T460S doesn’t have a VGA slot.

In the beginning, I plugged in the HDMI cable and the monitor was recognized in the system settings, but I couldn’t turn it on. Every once in a while I tried again and sometimes the monitor didn’t even appear in the system settings. Currently it does. But as soon as I plug in the cable, the system partly freezes/slows down and it’s impossible to work, because the laptop monitor turns black every couple of seconds. The external monitor remains black and sometimes displays a messages about HDMI power saving mode.

I have been able to connect other external monitors through HDMI though. I also checked the cable with another machine. For a short time, when Kernel 4.10 was installed, the problem disappeared (see Can't get external monitor to work through HDMI (Thinkpad T460s, Kubuntu)).

I have also tried using the monitor with Live USB (both Ubuntu 18.04 and Kubuntu 18.04), but the problem is the same.

Any ideas for a solution? I attach some command results.

$ uname -rm
4.15.0-34-generic x86_64

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

$ lspci -nnk | grep -i VGA -A2
00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07)
Subsystem: Lenovo Skylake GT2 [HD Graphics 520] [17aa:2233]
Kernel driver in use: i915

$ sudo lshw -c video
  *-display                 
       Beschreibung: VGA compatible controller
       Produkt: Skylake GT2 [HD Graphics 520]
       Hersteller: Intel Corporation
       Physische ID: 2
       Bus-Informationen: pci@0000:00:02.0
       Version: 07
       Breite: 64 bits
       Takt: 33MHz
       Fähigkeiten: pciexpress msi pm vga_controller bus_master cap_list rom
       Konfiguration: driver=i915 latency=0
       Ressourcen: irq:124 memory:f0000000-f0ffffff memory:e0000000-efffffff ioport:e000(Größe=64) memory:c0000-dffff

$ xrandr 
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
   2560x1440     60.00 +  48.00    59.95  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     59.97*   59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected (normal left inverted right x axis y axis)
   1920x1080     59.93 +  60.00    60.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1280x1024     60.02  
   1280x960      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94

This is the syslog from the moment I plug in the cable:
https://paste.ubuntu.com/p/qtJJ8tzQ4K/

I have tried deleting ./local/share/kscreen as suggested here:
https://bugs.kde.org/show_bug.cgi?id=353637
But that didn’t help.


Get this bounty!!!

#StackBounty: #6.0-marshmallow What reasons would an Android Phone's Network Radio turn off Sporadically

Bounty: 50

I have an android phone that is experiencing an issue that I suspect is hardware related. Randomly, service will no longer work on the phone and the only way I have found to temporarily resolve the issue is to dial *#*#4636#*#* and manually turn the radio back on. This will restore functionality, but only temporarily. It seems to be indeterminate when it stop working again.

I can’t think of a good methodology to pinpoint the issue, so any insight would be helpful


Get this bounty!!!

#StackBounty: #kubuntu #multiple-monitors #hdmi #thinkpad Why can't I (still) get my external monitor to work through HDMI? (Thinkp…

Bounty: 50

For a couple of years now I haven’t been able to get my LG Flatron W2261VP to work as an external monitor for my ThinkPad T460s running Kubuntu (currently 18.04.3 with Kernel 4.15.0). It’s connected through HDMI since the T460S doesn’t have a VGA slot.

In the beginning, I plugged in the HDMI cable and the monitor was recognized in the system settings, but I couldn’t turn it on. Every once in a while I tried again and sometimes the monitor didn’t even appear in the system settings. Currently it does. But as soon as I plug in the cable, the system partly freezes/slows down and it’s impossible to work, because the laptop monitor turns black every couple of seconds. The external monitor remains black and sometimes displays a messages about HDMI power saving mode.

I have been able to connect other external monitors through HDMI though. I also checked the cable with another machine. For a short time, when Kernel 4.10 was installed, the problem disappeared (see Can't get external monitor to work through HDMI (Thinkpad T460s, Kubuntu)).

I have also tried using the monitor with Live USB (both Ubuntu 18.04 and Kubuntu 18.04), but the problem is the same.

Any ideas for a solution? I attach some command results.

$ uname -rm
4.15.0-34-generic x86_64

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

$ lspci -nnk | grep -i VGA -A2
00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07)
Subsystem: Lenovo Skylake GT2 [HD Graphics 520] [17aa:2233]
Kernel driver in use: i915

$ sudo lshw -c video
  *-display                 
       Beschreibung: VGA compatible controller
       Produkt: Skylake GT2 [HD Graphics 520]
       Hersteller: Intel Corporation
       Physische ID: 2
       Bus-Informationen: pci@0000:00:02.0
       Version: 07
       Breite: 64 bits
       Takt: 33MHz
       Fähigkeiten: pciexpress msi pm vga_controller bus_master cap_list rom
       Konfiguration: driver=i915 latency=0
       Ressourcen: irq:124 memory:f0000000-f0ffffff memory:e0000000-efffffff ioport:e000(Größe=64) memory:c0000-dffff

$ xrandr 
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
   2560x1440     60.00 +  48.00    59.95  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     59.97*   59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected (normal left inverted right x axis y axis)
   1920x1080     59.93 +  60.00    60.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1280x1024     60.02  
   1280x960      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94

This is the syslog from the moment I plug in the cable:
https://paste.ubuntu.com/p/qtJJ8tzQ4K/

I have tried deleting ./local/share/kscreen as suggested here:
https://bugs.kde.org/show_bug.cgi?id=353637
But that didn’t help.


Get this bounty!!!

#StackBounty: #kubuntu #multiple-monitors #hdmi #thinkpad Why can't I (still) get my external monitor to work through HDMI? (Thinkp…

Bounty: 50

For a couple of years now I haven’t been able to get my LG Flatron W2261VP to work as an external monitor for my ThinkPad T460s running Kubuntu (currently 18.04.3 with Kernel 4.15.0). It’s connected through HDMI since the T460S doesn’t have a VGA slot.

In the beginning, I plugged in the HDMI cable and the monitor was recognized in the system settings, but I couldn’t turn it on. Every once in a while I tried again and sometimes the monitor didn’t even appear in the system settings. Currently it does. But as soon as I plug in the cable, the system partly freezes/slows down and it’s impossible to work, because the laptop monitor turns black every couple of seconds. The external monitor remains black and sometimes displays a messages about HDMI power saving mode.

I have been able to connect other external monitors through HDMI though. I also checked the cable with another machine. For a short time, when Kernel 4.10 was installed, the problem disappeared (see Can't get external monitor to work through HDMI (Thinkpad T460s, Kubuntu)).

I have also tried using the monitor with Live USB (both Ubuntu 18.04 and Kubuntu 18.04), but the problem is the same.

Any ideas for a solution? I attach some command results.

$ uname -rm
4.15.0-34-generic x86_64

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

$ lspci -nnk | grep -i VGA -A2
00:02.0 VGA compatible controller [0300]: Intel Corporation Skylake GT2 [HD Graphics 520] [8086:1916] (rev 07)
Subsystem: Lenovo Skylake GT2 [HD Graphics 520] [17aa:2233]
Kernel driver in use: i915

$ sudo lshw -c video
  *-display                 
       Beschreibung: VGA compatible controller
       Produkt: Skylake GT2 [HD Graphics 520]
       Hersteller: Intel Corporation
       Physische ID: 2
       Bus-Informationen: pci@0000:00:02.0
       Version: 07
       Breite: 64 bits
       Takt: 33MHz
       Fähigkeiten: pciexpress msi pm vga_controller bus_master cap_list rom
       Konfiguration: driver=i915 latency=0
       Ressourcen: irq:124 memory:f0000000-f0ffffff memory:e0000000-efffffff ioport:e000(Größe=64) memory:c0000-dffff

$ xrandr 
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 310mm x 170mm
   2560x1440     60.00 +  48.00    59.95  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     59.97*   59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1440x900      59.89  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1360x768      59.80    59.96  
   1280x800      59.99    59.97    59.81    59.91  
   1152x864      60.00  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   800x512       60.17  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   720x450       59.89  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   680x384       59.80    59.96  
   640x400       59.88    59.98  
   576x432       60.06  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 connected (normal left inverted right x axis y axis)
   1920x1080     59.93 +  60.00    60.00    50.00    59.94  
   1920x1080i    60.00    50.00    59.94  
   1680x1050     59.88  
   1280x1024     60.02  
   1280x960      60.00  
   1280x720      60.00    50.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       60.00    59.94  
   640x480       60.00    59.94

This is the syslog from the moment I plug in the cable:
https://paste.ubuntu.com/p/qtJJ8tzQ4K/

I have tried deleting ./local/share/kscreen as suggested here:
https://bugs.kde.org/show_bug.cgi?id=353637
But that didn’t help.


Get this bounty!!!

#StackBounty: #mysql Implementing a table that maintains a max heap property

Bounty: 50

For the last few days I was thinking about implementing data structures in MySQL. My idea was to create a table (or a set of tables) that allows me to implement the properties of a binary max heap. In a binary max heap, the largest node is at the top of the tree (the root node). Each insertion takes O(N)=lg(N) approximately. To test this theory I created the following case:

I created a table leaderboard_2 with the following structure:

CREATE TABLE leaderboard_2 (
  _id TINYINT(4) NOT NULL AUTO_INCREMENT,
  screen_name VARCHAR(50) NOT NULL,
  score TINYINT(4) NOT NULL,
  PRIMARY KEY (_id) 
) ENGINE = InnoDB;

To maintain the heap, I created a second table leaderboard_heap with the following structure:

CREATE TABLE leaderboard_heap (
  _id TINYINT(4) NOT NULL AUTO_INCREMENT,
  player_id TINYINT(4) NOT NULL,
  PRIMARY KEY(_id),
  FOREIGN KEY(player_id) REFERENCES leaderboard_2(_id)
) ENGINE = InnoDB;

Every time a row is inserted into leaderboard_2, I run a trigger to insert a row into leaderboard_heap with the _id of the newly created row. The trigger definition is as follows:

DELIMITER ;;
CREATE TRIGGER heap_insert
AFTER INSERT ON leaderboard_2
FOR EACH ROW
BEGIN 
  DECLARE heap_len TINYINT;
  INSERT INTO leaderboard_heap VALUES (NULL, NEW._id);
  CALL check_length_heap(heap_len);

  IF heap_len > 1 THEN
  BEGIN
    DECLARE k, comp TINYINT(4);
    SET k = heap_len;
    CALL comp_row(k, FLOOR(k/2), comp);

    -- swim
    WHILE (k > 1 AND comp > 0) DO
      CALL exch_row(k, FLOOR(k/2));
      SET k = FLOOR(k/2);
      CALL comp_row(k, FLOOR(k/2), comp);
    END WHILE;
  END;
  END IF;
END;;
DELIMITER ;

I also created the following procedures as helpers:

CREATE PROCEDURE check_length_heap(OUT heap_len TINYINT)
BEGIN
  SELECT COUNT(lh._id) INTO heap_len FROM leaderboard_heap AS lh;
END

The procedure above checks the current number of rows in leaderboard_heap table.

CREATE PROCEDURE comp_row(IN row_a_id TINYINT, IN row_b_id TINYINT, OUT comp TINYINT)
BEGIN
  DECLARE rowAScore, rowBScore TINYINT;
  SELECT score INTO rowAScore FROM leaderboard_2
    WHERE _id = row_a_id;
  SELECT score INTO rowBScore FROM leaderboard_2
    WHERE _id = row_b_id;

  IF rowAScore < rowBScore THEN
    SET comp = -1;
  ELSEIF rowAScore > rowBScore THEN
    SET comp = 1;
  ELSE
    SET comp = 0;
  END IF;
END

Using the _id value, the scores from two players are selected from leaderboard_2 table and a comparison value is set (OUT comp).

CREATE PROCEDURE exch_row(IN row_a_id TINYINT, row_b_id TINYINT)
BEGIN
  DECLARE aPlayerId, bPlayerId TINYINT(4);

  -- make temp copy of player_id
  SELECT player_id INTO aPLayerId FROM leaderboard_heap
    WHERE _id = row_a_id;
  SELECT player_id INTO bPlayerId FROM leaderboard_heap
    WHERE _id = row_b_id;

  -- update row with id = row_a_id
  UPDATE leaderboard_heap as lh
    SET lh.player_id = bPlayerId
  WHERE lh._id = row_a_id;
  -- update row with id = row_b_id
  UPDATE leaderboard_heap as lh
    SET lh.player_id = aPlayerId
  WHERE lh._id = row_b_id;


END

The current row’s player_id is exchanged with (swapped) the parent row where, if the _id of the current node (or, row) is k, then parent node (or, row) _id is FLOOR(k/2). The values are swapped as long as k != 1 AND player in current row has score greater than player in parent row.

I used this same algorithm in both Java and JavaScript and the method works fine. In this case however, whenever there’s an insert, the _id in leaderboard_heap is swapped instead of player_id.

For example, let’s say we run the following query:

INSERT INTO leaderboard_2 VALUES ('Liu Kang', 43);
INSERT INTO leaderboard_2 VALUES ('Kung Lao', 47);

The leaderboard_2 table looks as follows:

SELECT * FROM `leaderboard_2`
_id screen_name score   
1   Liu Kang    43  
2   Kung Lao    47  
Showing rows 0 -  1 (2 total, Query took 0.0001 seconds.)

After this insert, the table should look like this (if the code for heapify works as expected):

SELECT * FROM `leaderboard_heap` WHERE 1
_id player_id   
1   2   
2   1   
Showing rows 0 -  1 (2 total, Query took 0.0001 seconds.)

Instead, I get the following:

SELECT * FROM `leaderboard_heap` WHERE 1
_id player_id   
 2  1   
 1  2   
 Showing rows 0 -  1 (2 total, Query took 0.0001 seconds.)

At this point I am not sure what’s happening. From my code I can see no reason why the exchange wouldn’t work. I tested the exchange code in another table and there it worked as expected. Any suggestion or help will be greatly appreciated. I added all the necessary code to make the problem as clear as possible.


Get this bounty!!!

#StackBounty: #windows-10 #remote-desktop #remote-connection Windows 10 Remote Desktop Session Randomly Unexpectedly Terminates

Bounty: 50

I remote desktop to my Window 10 Surface laptop via LAN (to use Outlook from the laptop) allowing me to create send/emails on the Surface laptop via remote desktop from my desktop PC. This has been working fine for 2+ years.
Recently the Surface 10 has started ending the remote desktop session randomly perhaps 2 or 3 timeS per day. The worst parts is that it also terminates all running applications so when I can finally remote desktop back in my Outlook sessions have been lost. This is frustrating as I have lost a lot of drafted emails. (I’ve setup Outlook to save every 1 minute but still I want to fix this).

If I try to immediately log back in via RDP I sometimes get:

The number of connections to this computer is limited and all connections are in use right now. Try connecting later or contact your system administrator.

I wait and try again and I can log back in but all my applications have been terminated. Perhaps the user session is being logged out and back in – I can’t tell.

There are no failed attempts in System Event Log Security, only forced log off. I noticed over 100 Audit Success security events at same time:

Credential Manager credentials were read.
Subject:
    Security ID:        DOMAINMy Name
    Account Name:       My Name
    Account Domain:     DOMAIN
    Logon ID:           0x1A293A3D8
    Read Operation:     Enumerate Credentials
This event occurs when a user performs a read operation on stored credentials in Credential Manager.

This is then followed with:

An account was logged off.
Logon Type:         3

This event is generated when a logon session is destroyed. 
It may be positively correlated with a logon event using the Logon ID value. 
Logon IDs are only unique between reboots on the same computer.

Windows System Events at arounds this time shows a number of Errors:

The server {AAC1009F-AB33-48F9-9A21-7F5B88426A2E} did not register with DCOM within the required timeout.
The system is exiting connected standby 

Reason: Input Keyboard.
A timeout was reached (30000 milliseconds) while waiting for the Sync Host_1a14de225 service to connect.
A timeout was reached (30000 milliseconds) while waiting for the Windows Push 

Notifications User Service_1a14de225 service to connect.
The Clipboard User Service_1a14de225 service failed to start due to the following error: 
The service did not respond to the start or control request in a timely fashion.
A timeout was reached (30000 milliseconds) while waiting for the Clipboard User Service_1a14de225 service to connect.

The Connected Devices Platform User Service_1a14de225 service failed to start due to the following error: 
The service did not respond to the start or control request in a timely fashion.
A timeout was reached (30000 milliseconds) while waiting for the Connected Devices Platform User Service_1a14de225 service to connect.

The Clipboard User Service_1a14de225 service terminated unexpectedly. 
It has done this 1 time(s). 
The following corrective action will be taken in 3000 milliseconds: 
Restart the service.

The Sync Host_1a14de225 service terminated unexpectedly. 
It has done this 1 time(s).
The following corrective action will be taken in 10000 milliseconds: 
Restart the service.

The Windows Push Notifications User Service_1a14de225 service terminated unexpectedly.
It has done this 1 time(s).
The following corrective action will be taken in 10000 milliseconds:
Restart the service.


Get this bounty!!!