USB peripherals
#1
Hi,

I am running phosh on manjaro on my pinephone. When I connect the usb docking bar, I am then able to connect, for example, a usb sound card to the dock, and it shows up in sound settings. Without the dock, plugging anything into the usb C port on the phone turns the screen off. This includes a simple usb-c to usb-a female cable.

How can I use the usb port for peripherals? Is it possible to use the pogo pins for usb peripherals?

Thanks.
  Reply
#2
I just tried plugging in a MicroSD card in a reader via a USB-C - USB-A adapter. Manjaro Phosh, works fine.

Output from dmesg.
Code:
[  802.289935] anx7688 1-0028: plug irq (cd=1)
[  802.290195] anx7688 1-0028: plug irq (cd=1)
[  802.290313] anx7688 1-0028: plug irq (cd=1)
[  802.290526] anx7688 1-0028: plug irq (cd=0)
[  802.290617] anx7688 1-0028: plug irq (cd=0)
[  802.304176] anx7688 1-0028: cable inserted
[  802.344200] anx7688 1-0028: power enabled
[  802.408392] anx7688 1-0028: eeprom0 = 0x03
[  802.408416] anx7688 1-0028: fw loaded after 40 ms
[  802.408572] anx7688 1-0028: OCM firmware loaded (version 0x2410)
[  802.409473] anx7688 1-0028: send pd packet cmd=0x00 05 00 32 90 01 26 12
[  802.457338] anx7688 1-0028: send pd packet cmd=0x01 05 01 2c 91 01 26 16
[  802.457852] 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
[  802.458621] anx7688 1-0028: send pd packet cmd=0x03 05 03 00 00 01 ff f8
[  802.459095] anx7688 1-0028: OCM configuration completed
[  802.459845] anx7688 1-0028: status changed to 0x00
[  802.459877] anx7688 1-0028: cc_status changed to CC1 = SRC.Open CC2 = SRC.Open
[  802.459884] anx7688 1-0028: DP state changed to 0x00
[  802.459891] anx7688 1-0028: VCONN role change to SINK
[  802.459909] anx7688 1-0028: DATA role change requested to UFP
[  802.695417] anx7688 1-0028: status changed to 0x0c
[  802.695446] anx7688 1-0028: POWER role change to SOURCE
[  802.695662] anx7688 1-0028: VCONN role change to SOURCE
[  802.714602] healthd: battery l=42 v=3996 t=42.4 h=2 st=3 c=815 chg=
[  802.901031] anx7688 1-0028: status changed to 0x2c
[  802.901061] anx7688 1-0028: cc_status changed to CC1 = SRC.Open CC2 = SRC.Rd
[  802.901334] anx7688 1-0028: DATA role change requested to DFP
[  803.140182] usb 1-1: new high-speed USB device number 3 using ehci-platform
[  803.305767] usb-storage 1-1:1.0: USB Mass Storage device detected
[  803.306703] scsi host0: usb-storage 1-1:1.0
[  804.322115] scsi 0:0:0:0: Direct-Access     TS-RDF5  SD  Transcend    TS3A PQ: 0 ANSI: 6
[  804.735065] sd 0:0:0:0: [sda] 62281728 512-byte logical blocks: (31.9 GB/29.7 GiB)
[  804.736430] sd 0:0:0:0: [sda] Write Protect is off
[  804.736450] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[  804.737805] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  804.758605]  sda: sda1 sda2
[  804.764431] sd 0:0:0:0: [sda] Attached SCSI removable disk
[  805.600616] anx7688 1-0028: updating power mode to USB, current limit 0mA (0 => BC1.2)
[  805.600722] anx7688 1-0028: enabling vbus_in power path

Have you updated the anx7688 firmware? https://wiki.pine64.org/index.php/PinePh...X_firmware
Also do you have a Braveheart or Ubports edition? Those have a VCONN problem. https://wiki.pine64.org/wiki/PinePhone_1...rdware_Fix
  Reply
#3
This might be a problem of not having enough power to supply the attached device. I noticed that when I use the docking bar with hdmi, a wireless mouse and a wired keyboard connected to it, the screen turns off, it doesn't work. If I either remove the keyboard or the mouse or if I power the docking bar via the USB-C port, everything works. So maybe your sound card draws too much power for the phone itself. Unless you didn't have power going into the docking bar, then it must be something else.
  Reply
#4
8bit: Thanks for the suggestions. I tried updating the anx7688 firmware as described in the link, no change. I have not tried solving the VCONN problem, as that requires desoldering a tiny solder joint. That will be my last resort.

kqlnut: Thanks. I actually hadn't thought of that, good idea. But the fact that just a usb cable with nothing attached turns the screen off makes me think its not that. But I will be mindful of power consumption going forward.

Can the pogo pins be utilized as a usb input?
  Reply
#5
Today is the last day to order a replacement 3GB board at a discount for Braveheart/Ubports.
https://pine64.com/product/pinephone-com...46c16e2e66
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)