UPERFECT X Mini lapdock works with Librem 5

This is a really good point. At conferences where I would find myself walking around wearing a backpack anyway, adding the X Mini to the backpack along with the Nexdock wouldn’t add all that much weight. This is one area where the lapdock model gives you much more flexibility than a traditional laptop, you can swap from one lapdock to the next without closing any applications. Try that with a pair of traditional laptops!.

2 Likes

About the only issue I have with the Mini X is the rigidity of the usb c to usb c cable that comes with it. It makes it awkward to position your phone and the dock. Does anyone know of a cable to that is more flexible and not so long? I mean I need 6in / 15cm cable and that is it. The phone is always being used as a second screen, and so I don’t need it to be long.

I’ve found this sort of cable to work well. Having a high quality cable seems to be important. The lower quality cables have a tendency to fail, causing flickering on the screen and other problems:

1 Like

Thanks Kyle. I didn’t get that one because Amazon.de could get me something a bit faster. I have been using my L5 quite a bit lately with the Mini X and it has been an ideal situation for the most part!!!

My only real gripe about the Mini X is that it can’t be charged via USB C. Only the little barrel connector that comes with it. Which I can’t find at the moment.

But the Mini X has basically tuned my Librem 5 into the work break programming station. I am able to work on my side projects and it all works awesomely. Syncing things with Resilio Sync things are all synced up when I get home.

The only bummer is that the L5 cannot negotiate cell signals when close to the border here.

Still being able to have a pocket computer like the L5 enable this kind of thing is truly awesome.

4 Likes

I found this adapter works so that I can charge it with my existing USB-C chargers:

2 Likes

Thanks Kyle. Once I get things a little more sorted, I’ll do a little write up about using the L5 in the way that I am, and use that as an opportunity to give it a little review. Try to spread some positivity about the awesome software that is being done.

I really appreciate all the work being done on the L5!!

2 Likes

And copying my comment from above: Weirdly, the three larger models all seem to have USB-C for power input.

I don’t know what UPERFECT were thinking there??? I’m not a fan of charging via USB-C but if you already have a number of models using USB-C for charging and a later model released after the X Mini that also uses USB-C for charging, why slot in one model that does it differently? I can only guess that it is a design consequence of the smallest form factor.

I just got my X Mini today as well, seems to work pretty well. After realizing you need to enable touch support in phosh-mobile-settings, it mostly works. The hardware itself is alright. The keyboard a little small, the trackpad sounds a lot when clicking it, the bezel is a bit thick and when touching the screen too hard on a black background will show a bit of backlight bleed (just flimsy plastic protection on top of the LCD/digitizer I guess). But when it was on sale for less than $200 I just couldn´t resist and it is certainly worth that price. I am writing this on it right now.

The only big issue I have is that the phone does not charge from the laptop. Some users reported low charging rate, but I am talking about it not charging at all. Anyone got a similar issue?

The following is also spamming my journal, unrelated to the charging though. Not sure why that warning is spammed, everything works as expected in phoc as far as I can see.

Jan 14 17:02:38 johan-librem5 phoc[677]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 14 17:02:38 johan-librem5 phoc[677]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 14 17:02:38 johan-librem5 phoc[677]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 14 17:02:38 johan-librem5 phoc[677]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 14 17:02:38 johan-librem5 phoc[677]: [types/output/cursor.c:354] Failed to render cursor buffer
1 Like

Useful for your further orientation:
cat /sys/class/power_supply/tps6598x-source-psy-0-003f/present
cat /sys/class/power_supply/tps6598x-source-psy-0-003f/uevent

purism@johan-librem5 ~ $ cat /sys/class/power_supply/tps6598x-source-psy-0-003f/present
1
purism@johan-librem5 ~ $ cat /sys/class/power_supply/tps6598x-source-psy-0-003f/uevent
POWER_SUPPLY_NAME=tps6598x-source-psy-0-003f
POWER_SUPPLY_TYPE=USB
POWER_SUPPLY_USB_TYPE=SDP DCP CDP C [PD]
POWER_SUPPLY_ONLINE=1
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_CURRENT_MAX=500000
POWER_SUPPLY_VOLTAGE_MAX=5000000

So it seems to at least detect the dock battery, and seems like it can charge for 5V 500mAh. Maybe it´s actually charging, maybe it´s just so slow that I don´t realize it as well as there is some bug in gnome-power-settings that it thinks the phone battery is in state “Discharging” as well as a bug in phosh that the top-right battery icon is not showing that it is charging?

1 Like

When your Librem 5 is not connected to some power supply (source) it will show very same output. This means therefore, as you already supposed, that there is not happening any charging of the connected device battery. One additional approach would be that you at least check if this USB-C port charges some other smartphone … not sure at this moment what else you might want to try there.

It seems to be charging my Android phone just fine (an OnePlus 7). Will try and see if I can find any logs from dmesg or journalctl.

1 Like

I did “sudo journalctl -f” while putting in the dock, this was the result. The prints from bq25890-charger looks a bit suspicious, but I don’t know how to interpret what they might mean.

Jan 15 13:06:15 johan-librem5 sudo[8170]:   purism : TTY=pts/0 ; PWD=/home/purism ; USER=root ; COMMAND=/usr/bin/journalctl -f
Jan 15 13:06:15 johan-librem5 sudo[8170]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:17 johan-librem5 kernel: xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
Jan 15 13:06:17 johan-librem5 kernel: xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 3
Jan 15 13:06:17 johan-librem5 kernel: xhci-hcd xhci-hcd.5.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x0000000000010010
Jan 15 13:06:17 johan-librem5 kernel: xhci-hcd xhci-hcd.5.auto: irq 64, io mem 0x38100000
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:17 johan-librem5 kernel: usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.17
Jan 15 13:06:17 johan-librem5 kernel: usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Jan 15 13:06:17 johan-librem5 kernel: usb usb3: Product: xHCI Host Controller
Jan 15 13:06:17 johan-librem5 kernel: usb usb3: Manufacturer: Linux 5.17.0-1-librem5 xhci-hcd
Jan 15 13:06:17 johan-librem5 kernel: usb usb3: SerialNumber: xhci-hcd.5.auto
Jan 15 13:06:17 johan-librem5 kernel: hub 3-0:1.0: USB hub found
Jan 15 13:06:17 johan-librem5 kernel: hub 3-0:1.0: 1 port detected
Jan 15 13:06:17 johan-librem5 kernel: xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
Jan 15 13:06:17 johan-librem5 kernel: xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 4
Jan 15 13:06:17 johan-librem5 kernel: xhci-hcd xhci-hcd.5.auto: Host supports USB 3.0 SuperSpeed
Jan 15 13:06:17 johan-librem5 kernel: usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
Jan 15 13:06:17 johan-librem5 kernel: usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.17
Jan 15 13:06:17 johan-librem5 kernel: usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Jan 15 13:06:17 johan-librem5 kernel: usb usb4: Product: xHCI Host Controller
Jan 15 13:06:17 johan-librem5 kernel: usb usb4: Manufacturer: Linux 5.17.0-1-librem5 xhci-hcd
Jan 15 13:06:17 johan-librem5 kernel: usb usb4: SerialNumber: xhci-hcd.5.auto
Jan 15 13:06:17 johan-librem5 kernel: hub 4-0:1.0: USB hub found
Jan 15 13:06:17 johan-librem5 kernel: hub 4-0:1.0: 1 port detected
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:17 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:18 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:18 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:18 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:18 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:18 johan-librem5 kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:06:18 johan-librem5 kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:06:19 johan-librem5 kernel: [drm] hpd irq
Jan 15 13:06:19 johan-librem5 kernel: [drm] Connector status: 1
Jan 15 13:06:19 johan-librem5 kernel: [drm] HDMI/DP Cable Plug In
Jan 15 13:06:19 johan-librem5 kernel: [drm] Connector status: 1
Jan 15 13:06:19 johan-librem5 kernel: cdns-mhdp-imx 32c00000.hdmi: 0,ff,ff,ff,ff,ff,ff,0
Jan 15 13:06:19 johan-librem5 phoc[6215]: Output 'DP-1' added ('Unknown'/'uperfect'/'8R33926O00QS'), 290mm x 170mm
Jan 15 13:06:19 johan-librem5 kernel: [drm] Mode: 1920x1080p138750
Jan 15 13:06:19 johan-librem5 kernel: cdns-mhdp-imx 32c00000.hdmi: [drm:cdns_mhdp_set_host_cap [cdns_mhdp_drmcore]] Using 4 lanes
Jan 15 13:06:19 johan-librem5 kernel: cdns-mhdp-imx 32c00000.hdmi: [drm:cdns_mhdp_train_link [cdns_mhdp_drmcore]] Starting link training
Jan 15 13:06:19 johan-librem5 kernel: usb 3-1: new high-speed USB device number 2 using xhci-hcd
Jan 15 13:06:19 johan-librem5 gsd-color[6329]: failed to get edid: unable to get EDID for output
Jan 15 13:06:19 johan-librem5 gsd-xsettings[6343]: Failed to get current UI legacy scaling factor
Jan 15 13:06:19 johan-librem5 gsd-xsettings[6343]: Failed to get current UI legacy scaling factor
Jan 15 13:06:19 johan-librem5 gsd-xsettings[6343]: Failed to get current UI legacy scaling factor
Jan 15 13:06:19 johan-librem5 gsd-xsettings[6343]: Failed to get current UI legacy scaling factor
Jan 15 13:06:19 johan-librem5 gsd-xsettings[6343]: Failed to get current UI legacy scaling factor
Jan 15 13:06:19 johan-librem5 gsd-xsettings[6343]: Failed to get current UI legacy scaling factor
Jan 15 13:06:19 johan-librem5 gsd-color[6329]: unable to get EDID for xrandr-DP-1: unable to get EDID for output
Jan 15 13:06:19 johan-librem5 gsd-color[6329]: unable to get EDID for xrandr-DSI-1: unable to get EDID for output
Jan 15 13:06:19 johan-librem5 gsd-color[6329]: unable to get EDID for xrandr-DP-1: unable to get EDID for output
Jan 15 13:06:19 johan-librem5 gsd-color[6329]: unable to get EDID for xrandr-DSI-1: unable to get EDID for output
Jan 15 13:06:19 johan-librem5 gsd-color[6329]: unable to get EDID for xrandr-DP-1: unable to get EDID for output
Jan 15 13:06:19 johan-librem5 gsd-color[6329]: unable to get EDID for xrandr-DSI-1: unable to get EDID for output
Jan 15 13:06:19 johan-librem5 gsd-color[6329]: unable to get EDID for xrandr-DP-1: unable to get EDID for output
Jan 15 13:06:19 johan-librem5 kernel: usb 3-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.00
Jan 15 13:06:19 johan-librem5 kernel: usb 3-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Jan 15 13:06:19 johan-librem5 kernel: usb 3-1: Product: USB2.0 HUB
Jan 15 13:06:19 johan-librem5 kernel: hub 3-1:1.0: USB hub found
Jan 15 13:06:19 johan-librem5 kernel: hub 3-1:1.0: 4 ports detected
Jan 15 13:06:19 johan-librem5 upowerd[787]: treating change event as add on /sys/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1
Jan 15 13:06:20 johan-librem5 kernel: usb 3-1.1: new full-speed USB device number 3 using xhci-hcd
Jan 15 13:06:20 johan-librem5 kernel: usb 3-1.1: New USB device found, idVendor=1c4f, idProduct=007c, bcdDevice= 1.00
Jan 15 13:06:20 johan-librem5 kernel: usb 3-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 15 13:06:20 johan-librem5 kernel: usb 3-1.1: Product: USB Keyboard
Jan 15 13:06:20 johan-librem5 kernel: usb 3-1.1: Manufacturer: SIGMACHIP
Jan 15 13:06:20 johan-librem5 kernel: input: SIGMACHIP USB Keyboard as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:1C4F:007C.0015/input/input36
Jan 15 13:06:20 johan-librem5 kernel: hid-generic 0003:1C4F:007C.0015: input,hidraw0: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-xhci-hcd.5.auto-1.1/input0
Jan 15 13:06:20 johan-librem5 kernel: input: SIGMACHIP USB Keyboard Mouse as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0016/input/input37
Jan 15 13:06:20 johan-librem5 kernel: input: SIGMACHIP USB Keyboard Consumer Control as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0016/input/input38
Jan 15 13:06:20 johan-librem5 kernel: input: SIGMACHIP USB Keyboard System Control as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0016/input/input39
Jan 15 13:06:20 johan-librem5 kernel: input: SIGMACHIP USB Keyboard Wireless Radio Control as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1.1/3-1.1:1.1/0003:1C4F:007C.0016/input/input40
Jan 15 13:06:20 johan-librem5 kernel: hid-generic 0003:1C4F:007C.0016: input,hiddev96,hidraw1: USB HID v1.10 Mouse [SIGMACHIP USB Keyboard] on usb-xhci-hcd.5.auto-1.1/input1
Jan 15 13:06:20 johan-librem5 systemd-logind[573]: Watching system buttons on /dev/input/event6 (SIGMACHIP USB Keyboard System Control)
Jan 15 13:06:20 johan-librem5 systemd-logind[573]: Watching system buttons on /dev/input/event5 (SIGMACHIP USB Keyboard Consumer Control)
Jan 15 13:06:20 johan-librem5 systemd-logind[573]: Watching system buttons on /dev/input/event3 (SIGMACHIP USB Keyboard)
Jan 15 13:06:20 johan-librem5 kernel: usb 3-1.2: new high-speed USB device number 4 using xhci-hcd
Jan 15 13:06:20 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:20 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:20 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:20 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:20 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:20 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phosh[8222]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Jan 15 13:06:21 johan-librem5 phosh[8222]: > Warning:          Unsupported maximum keycode 569, clipping.
Jan 15 13:06:21 johan-librem5 phosh[8222]: >                   X11 cannot support keycodes above 255.
Jan 15 13:06:21 johan-librem5 phosh[8222]: Errors from xkbcomp are not fatal to the X server
Jan 15 13:06:21 johan-librem5 kernel: usb 3-1.2: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.00
Jan 15 13:06:21 johan-librem5 kernel: usb 3-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Jan 15 13:06:21 johan-librem5 kernel: usb 3-1.2: Product: USB2.0 HUB
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 kernel: hub 3-1.2:1.0: USB hub found
Jan 15 13:06:21 johan-librem5 kernel: hub 3-1.2:1.0: 4 ports detected
Jan 15 13:06:21 johan-librem5 upowerd[787]: treating change event as add on /sys/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1.1
Jan 15 13:06:21 johan-librem5 upowerd[787]: treating change event as add on /sys/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1.2
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phosh[8231]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Jan 15 13:06:21 johan-librem5 phosh[8231]: > Warning:          Unsupported maximum keycode 569, clipping.
Jan 15 13:06:21 johan-librem5 phosh[8231]: >                   X11 cannot support keycodes above 255.
Jan 15 13:06:21 johan-librem5 phosh[8231]: Errors from xkbcomp are not fatal to the X server
Jan 15 13:06:21 johan-librem5 kernel: usb 3-1.2.1: new full-speed USB device number 5 using xhci-hcd
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phosh[8234]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Jan 15 13:06:21 johan-librem5 phosh[8234]: > Warning:          Unsupported maximum keycode 569, clipping.
Jan 15 13:06:21 johan-librem5 phosh[8234]: >                   X11 cannot support keycodes above 255.
Jan 15 13:06:21 johan-librem5 phosh[8234]: Errors from xkbcomp are not fatal to the X server
Jan 15 13:06:21 johan-librem5 kernel: usb 3-1.2.1: New USB device found, idVendor=27c6, idProduct=0818, bcdDevice= 1.28
Jan 15 13:06:21 johan-librem5 kernel: usb 3-1.2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 15 13:06:21 johan-librem5 kernel: usb 3-1.2.1: Product: TouchScreen
Jan 15 13:06:21 johan-librem5 kernel: usb 3-1.2.1: Manufacturer: WingCool Inc.
Jan 15 13:06:21 johan-librem5 kernel: usb 3-1.2.1: SerialNumber: 9LQ0172005164
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 kernel: input: WingCool Inc. TouchScreen as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1.2/3-1.2.1/3-1.2.1:1.0/0003:27C6:0818.0017/input/input41
Jan 15 13:06:21 johan-librem5 kernel: hid-multitouch 0003:27C6:0818.0017: input,hiddev97,hidraw2: USB HID v1.10 Device [WingCool Inc. TouchScreen] on usb-xhci-hcd.5.auto-1.2.1/input0
Jan 15 13:06:21 johan-librem5 kernel: hid-generic 0003:27C6:0818.0018: hiddev98,hidraw3: USB HID v1.10 Device [WingCool Inc. TouchScreen] on usb-xhci-hcd.5.auto-1.2.1/input1
Jan 15 13:06:21 johan-librem5 kernel: input: WingCool Inc. TouchScreen Mouse as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1.2/3-1.2.1/3-1.2.1:1.2/0003:27C6:0818.0019/input/input42
Jan 15 13:06:21 johan-librem5 kernel: hid-generic 0003:27C6:0818.0019: input,hidraw4: USB HID v1.10 Mouse [WingCool Inc. TouchScreen] on usb-xhci-hcd.5.auto-1.2.1/input2
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:21 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:22 johan-librem5 phosh[8248]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Jan 15 13:06:22 johan-librem5 phosh[8248]: > Warning:          Unsupported maximum keycode 569, clipping.
Jan 15 13:06:22 johan-librem5 phosh[8248]: >                   X11 cannot support keycodes above 255.
Jan 15 13:06:22 johan-librem5 phosh[8248]: Errors from xkbcomp are not fatal to the X server
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:22 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:23 johan-librem5 kernel: redpine_91x: Packet Dropped as Key ID not matched with both current and previous Key ID
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:223] Failed to get cursor display formats
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:269] Failed to pick cursor format
Jan 15 13:06:24 johan-librem5 phoc[6215]: [types/output/cursor.c:354] Failed to render cursor buffer

This needs to be proved there as well:

EDIT: @johan-bjareholt, my method (based on yours) was to have my Librem 5 connected to some power supply, execute sudo journalctl -f thereafter, and now disconnect charging cable from Librem 5 and got there: Upstream supply changed: 0. (disconnected), as shown:

Jan 15 13:28:09 pureos sudo[19034]:   purism : TTY=pts/0 ; PWD=/home/purism ; USER=root ; COMMAND=/usr/bin/journalctl -f
Jan 15 13:28:09 pureos sudo[19034]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Jan 15 13:28:45 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 0.
Jan 15 13:28:45 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:28:45 pureos kernel: tps6598x 0-003f: The interrupt is masked , how did it fire ?? 380100a
Jan 15 13:28:45 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 0.
Jan 15 13:28:45 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:28:45 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 0.
Jan 15 13:28:45 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:28:45 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 0.
Jan 15 13:28:45 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:28:51 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:28:51 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:28:51 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:28:51 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:28:51 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:28:51 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:28:51 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:28:51 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:28:51 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:28:51 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:28:57 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:28:57 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin
Jan 15 13:29:02 pureos kernel: bq25890-charger 3-006a: Upstream supply changed: 1.
Jan 15 13:29:02 pureos kernel: bq25890-charger 3-006a: Disabling OTG_EN pin

I can’t speak for the battery icon part, but even though you are getting 500mA from the dock to the Librem 5, if the Librem 5 is currently using more power than that (which is quite possible when docked and doing things), then it could very well be discharging (it is using more than 500mA power, therefore it has to get that power from the battery).

You need more cat /sys/class/... to look at the actual current flow with the battery, rather than the option negotiated with the (potential) power source (over USB).

e.g. cat /sys/class/power_supply/max170xx_battery/current_now

should be negative if discharging.

1 Like

It is negative, so it is discharging.

purism@johan-librem5 ~ $ cat /sys/class/power_supply/max170xx_battery/current_now
-145283

Thanks for the tip. After some more investigation it seems like the dock is providing less power than the phone is consuming, so it’s technically true that the battery is discharging (at the same time as it is being charged).

When having the “Power” section open in Settings, it jumps for 4-5 hours expected battery life to 6-10 hours when I plug in the dock. I also found gnome-power-manager which clearly states that while the battery is in “discharge” mode, the “AC adapter” has “Online” set to “yes” when the dock gets plugged in. So I guess that phosh and the battery icon probably just looks at the battery “state” which is “discharging”, which was the only thing that confused me (also the fact that i saw 6-7 hours estimated battery life when plugged in the first few times when I looked at the battery stats, which is what I’d expect from a phone when it’s not plugged in…). I’d prefer if phosh looked at if the charger was “online” rather than if the battery is discharging, would make more sense to me.

Hey Kyle I asked this in the other dock thread, but I noticed with my Nexdock that if I have my samsung connected, even if the phone and dock screen go into screen saver mode the phone continues to charge and the screen can awaken with mouse/keyboard.

With the Librem 5 once it blanks, shortly thereafter the nexdoc shuts down completely and can only be woken with the power button and as a result is also not charging the phone. I discovered this when I left the L5 connected to it thinking it would continue to charge but it just drained as if it was not plugged in. Is this a hardware issue or is it a driver/kernel/whatever issue?

1 Like

I suspect when the L5 screen blanks it disables not only its own display (to save power) but any displays it is connected to, so the Nexdock thinks it has been disconnected and starts the timer for shutdown.

I personally have automatic blank screen disabled on my own L5, but I do have “Dim Screen When Inactive” enabled.

1 Like