Video Out not working
#1
Hello,

I have the PinePhone (3GB) with the Convergence Pack, which has the USB-C dongle.
It runs Manjaro ARM Plasma Mobile, but I also tried the Phosh Edition with no success.
Unfortunately I can't get any video output working.
I already tried it with 2 TVs and 1 monitor.
On the first try with Plasma Mobile the screen flickered and I got at least some visual feedback from the TV that it was connected to
but on subsequent tries nothing happened.
When connecting to a display, the display recognizes that something is connected, but don't even try to switch to a resolution.
I'm gonna post the dmesg output later, since the Pinephone is charging now.

Kernel Version: 5.14.10-1-MANJARO-ARM
Plasma Version: 5.22.5
  Reply
#2
((( You do have power connected to your 'dongle' ? )))

Have you tried with other OSes such as arm/Arch, Mobian, or Post Market ?

Manjaro/Plasma and Manjaro/Phosh are still ... both Manjaro, * if it is an OS problem, then it could be shared across the different Desktops.
      LINUX = CHOICES
         **BCnAZ**
               Idea
   Donate to $upport
your favorite OS Team
  Reply
#3
(10-07-2021, 03:05 PM)bcnaz Wrote: (((  You do have power connected to your 'dongle' ? )))

Have you tried with other OSes such as arm/Arch,  Mobian, or Post Market ?

Manjaro/Plasma and Manjaro/Phosh are still ... both Manjaro,  * if it is an OS problem, then it could be shared across the different Desktops.

Yes the dongle was powered.

I tried it on my laptop and found out that for some reason HDMI-out on my TUXEDO laptop is also broken (X11 & Wayland).
My laptop has dualboot Gentoo+Manjaro.
I also tried connecting the dongle to Android phones, but still no video output.

I'm gonna have to do more testing tomorrow.

Edit:
I tried my moms laptop that only has HDMI, no USB-C, and it shows an image on the TV.
So it can't be a TV-related problem.
  Reply
#4
I have finally found time again.
I now have tested Arch Linux ARM and postmarketOS with the same error.
When connecting HDMI to the dock; dmesg says:
Code:
[  279.043860] sun8i-dw-hdmi 1ee0000.hdmi: EVENT=plugin
[  279.043921] sun8i-dw-hdmi 1ee0000.hdmi: EVENT=plugout
[  279.295984] anx7688 1-0028: DP state changed to 0x03

With postmarketOS v20.5 (kernel 5.10.4) and 15% battery it suddenly works now.

Full dmesg:
Code:
[  104.092205] anx7688 1-0028: plug irq (cd=1)
[  104.106337] anx7688 1-0028: cable inserted
[  104.146307] anx7688 1-0028: power enabled
[  104.210442] anx7688 1-0028: eeprom0 = 0x03
[  104.210456] anx7688 1-0028: fw loaded after 40 ms
[  104.210623] anx7688 1-0028: OCM firmware loaded (version 0x2312)
[  104.211565] anx7688 1-0028: send pd packet cmd=0x00 05 00 32 90 01 26 12
[  104.259552] anx7688 1-0028: send pd packet cmd=0x01 05 01 2c 91 01 26 16
[  104.260065] anx7688 1-0028: send pd packet cmd=0x02 11 02 00 00 00 ec 00 00 00 00 00 00 00 00 39 00 00 51 77
[  104.260879] anx7688 1-0028: send pd packet cmd=0x03 05 03 00 00 01 ff f8
[  104.261387] anx7688 1-0028: OCM configuration completed
[  104.262011] anx7688 1-0028: status changed to 0x00
[  104.262022] anx7688 1-0028: cc_status changed to CC1 = SRC.Open CC2 = SRC.Open
[  104.262031] anx7688 1-0028: DP state changed to 0x00
[  104.262039] anx7688 1-0028: VCONN role change to SINK
[  104.497512] anx7688 1-0028: status changed to 0x0c
[  104.497533] anx7688 1-0028: POWER role change to SOURCE
[  104.497669] anx7688 1-0028: VCONN role change to SOURCE
[  104.518761] anx7688 1-0028: BC 1.2 result: SDP
[  104.702953] anx7688 1-0028: status changed to 0x2c
[  104.702973] anx7688 1-0028: cc_status changed to CC1 = SRC.Ra CC2 = SRC.Rd
[  104.703112] anx7688 1-0028: DATA role change requested to DFP
[  104.703178] phy id_det change to host
[  105.078299] usb 1-1: new high-speed USB device number 2 using ehci-platform
[  105.235883] hub 1-1:1.0: USB hub found
[  105.235994] hub 1-1:1.0: 4 ports detected
[  105.818322] usb 1-1.1: new full-speed USB device number 3 using ehci-platform
[  105.987538] anx7688 1-0028: recv ocm message cmd=0x16 05 16 32 c8 00 12 d9
[  105.987559] anx7688 1-0028: received PWR_OBJ_REQ
[  105.987570] anx7688 1-0028: RDO (idx=0 op=500mA max=500mA)
[  105.987579] anx7688 1-0028: PDO_FIXED (5000mV 500mA)
[  106.120662] anx7688 1-0028: recv ocm message cmd=0x01 05 01 2c 91 01 05 37
[  106.120992] anx7688 1-0028: received SNK_CAP
[  106.121255] anx7688 1-0028: SNK_CAP PDO_FIXED (5000mV 3000mA)
[  106.140208] anx7688 1-0028: recv ocm message cmd=0x02 11 02 39 06 00 6c 00 00 00 00 00 01 00 00 db 00 00 11 55
[  106.140216] anx7688 1-0028: received DP_SNK_IDENTITY
[  106.143618] anx7688 1-0028: recv ocm message cmd=0x03 05 03 00 00 01 ff f8
[  106.143625] anx7688 1-0028: received SVID
[  106.147186] anx7688 1-0028: recv ocm message cmd=0x27 09 27 03 80 01 ff 05 0c 00 00 3c
[  106.147194] anx7688 1-0028: received unknown message 0x27
[  106.158530] anx7688 1-0028: recv ocm message cmd=0x19 01 19 e6
[  106.158538] anx7688 1-0028: received DP_ALT_ENTER
[  106.542340] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
[  106.778059] cdc_ether 1-1.2:2.0 eth0: register 'cdc_ether' at usb-1c1a000.usb-1.2, CDC Ethernet Device, 00:e0:4c:16:05:12
[  106.778391] usbcore: registered new interface driver cdc_ether
[  107.486718] anx7688 1-0028: DP state changed to 0x02
[  107.486744] anx7688 1-0028: updating power mode to PD, current limit 0mA (0 => BC1.2)
[  107.486835] anx7688 1-0028: enabling vbus_in power path
[  107.646747] anx7688 1-0028: DP state changed to 0x03
[  108.670751] anx7688 1-0028: DP state changed to 0x04
[  109.694647] anx7688 1-0028: DP state changed to 0x06
  Reply
#5
Ok I have done more extensive testing and research. It seems like https://xnux.eu/log/#045 is my problem.
HDMI output starts working on postmarketOS v20.05 (Phosh) if the battery is at about 15%.
It even continues working with the charger plugged in, but only if I don't disconnect it.
On Manjaro ARM (Plasma Mobile) I additionally had to apply the workaround mentioned in the link above.
Even with the workaround; Plasma is kinda buggy. The Phosh experience is much better.
  Reply
#6
Curious :
Are you running from the eMMC or sd card ?
and
Have you tried Mobian ?
      LINUX = CHOICES
         **BCnAZ**
               Idea
   Donate to $upport
your favorite OS Team
  Reply
#7
(10-17-2021, 04:06 PM)bcnaz Wrote: Curious :
Are you running from the eMMC  or sd card  ?
and
Have you tried Mobian ?

I ran Manjaro ARM Plasma on eMMC and pmOS on SD.

Gonna try Mobian next...
  Reply
#8
Finally some real success!

I have casually tried Sxmo and it works with a small workaround.
Since Sxmo is X11-based I have xrandr which works better than wlr-randr.

The workaround is a small shell script that I've written:
Code:
#!/bin/sh

# Check if this script is run as root
[ "$(id -u)" != 0 ] && echo "Superuser access required." && exit 1

# Disable force-connect
echo off > /sys/kernel/debug/dri/1/HDMI-A-1/force

# Upload EDID firmware
cat /etc/edid.bin > /sys/kernel/debug/dri/1/HDMI-A-1/edid_override

# Enable force-connect
echo on > /sys/kernel/debug/dri/1/HDMI-A-1/force

# Set the external display as primary and mirror the internal display
xrandr --output HDMI-1 --auto --primary --same-as DSI-1

# TODO
#xrandr --output DSI-1 --noprimary
#feh --bg-fill /usr/share/sxmo/background.jpg
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  4G VoLTE calls confirmed working with carrier x dcinoz 15 11,299 03-09-2024, 11:38 PM
Last Post: dcinoz
  How can I record video on a Pinephone? kk22 8 3,593 01-22-2023, 06:45 AM
Last Post: linmob
  MMS sending stopped working amindfv 2 1,154 01-16-2023, 09:44 PM
Last Post: treebeard
  Instructions to get pinephone working on USA carrier omarcomputing 1 1,286 10-08-2022, 04:45 PM
Last Post: treebeard
  JumpDrive isn't working phytocube 2 1,684 06-05-2022, 03:22 PM
Last Post: phytocube
  SIM card slot not working dekrets 2 2,101 02-12-2022, 11:09 AM
Last Post: dekrets
  Can't get autofocus working duncan_bayne 4 2,807 01-22-2022, 09:17 PM
Last Post: duncan_bayne
  PinePhone Beta 3GB modem not working hannescam 15 8,768 01-19-2022, 02:08 AM
Last Post: bcnaz
  How did you get data working on PureTalk? nelstomlinson 2 2,797 09-26-2021, 03:50 PM
Last Post: nelstomlinson
  Video playback with hardware acceleration jojuma 2 2,903 08-21-2021, 11:24 AM
Last Post: jojuma

Forum Jump:


Users browsing this thread: 1 Guest(s)