A true mainline Linux Kernel for the Pinebook Pro
#71
(11-29-2019, 11:29 AM)tsys Wrote: Hey everyone,

more good news: DP altmode on the USB-C port is now working!

Support is not perfect and pretty hacky but it should still work just fine. It does only work in one USB-C plug orientation for me though. Since it does only work in one orientation on the stock debian image, too I'm currently suspecting my USB-C -> HDMI cable. Unfortunately I do not have any other device that can do USB-C DP altmode thus I can't really test that hypothesis.

I tested today with all three of my USB-C to HDMI adapters... all can put up a display (and are reversible).

Only odd thing is that one of the adapters doesn't seem to pass through the charger correctly. This is very likely to be an adapter problem rather than a PBP problem. With a slightly more "better" (more expensive and more attractive) adapter then I can have one type-C connected to the board and it is providing a bunch of USB peripherals, HDMI output and is charging at 12W.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#72
(12-02-2019, 11:20 AM)danielt Wrote: I tested today with all three of my USB-C to HDMI adapters... all can put up a display (and are reversible).

Thanks for testing! Kind of expected my cable to be at fault here.

(12-02-2019, 11:20 AM)danielt Wrote: Only odd thing is that one of the adapters doesn't seem to pass through the charger correctly. This is very likely to be an adapter problem rather than a PBP problem.

There are two debug logs, /sys/kernel/debug/usb/fusb302-4-0022 and /sys/kernel/debug/usb/tcpm-4-0022 in case you are interested in digging into USB typec configuration channel defails Tongue 

(12-02-2019, 11:20 AM)danielt Wrote: With a slightly more "better" (more expensive and more attractive) adapter then I can have one type-C connected to the board and it is providing a bunch of USB peripherals, HDMI output and is charging at 12W.

Huh, I'm not sure if I'm understanding you correctly here. Did you actually try a nicer adapter or would you just like to have one for the PBP? Would be totally amazing if it does actually work already since I had no way to even test that yet Big Grin
Manjaro ARM

Kernel dev
Buy me a coffee
#73
(12-02-2019, 09:37 PM)tsys Wrote: danieltWith a slightly more "better" (more expensive and more attractive) adapter then I can have one type-C connected to the board and it is providing a bunch of USB peripherals, HDMI output and is charging at 12W.

Huh, I'm not sure if I'm understanding you correctly here. Did you actually try a nicer adapter or would you just like to have one for the PBP? Would be totally amazing if it does actually work already since I had no way to even test that yet Big Grin

Sorry, I should be clearer.

I have three adapters. All work find for simultaneous USB2 and HDMI.

However the cheapest one doesn't pass through the charger properly and one I couldn't test because (for very good reasons) it is attached to my desk in a manner that obscures the charger socket.

However the third one (http://www.raycue.com/?product=raycue-us...r-notebook) does charge well whilst running all the other functions.

PS One thing I have discovered since posting yesterday is that there do seem to be some problems with USB3 devices (USB3 devices won't enumerate and the hub built into in my adapter doesn't show up in lsusb -t). I only found this when I went looking for trouble though ;-) since all the kit I usually hang off a docking adapter is USB2.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#74
(12-03-2019, 04:22 AM)danielt Wrote: Sorry, I should be clearer.

I have three adapters. All work find for simultaneous USB2 and HDMI.

However the cheapest one doesn't pass through the charger properly and one I couldn't test because (for very good reasons) it is attached to my desk in a manner that obscures the charger socket.

However the third one (http://www.raycue.com/?product=raycue-us...r-notebook) does charge well whilst running all the other functions.

PS One thing I have discovered since posting yesterday is that there do seem to be some problems with USB3 devices (USB3 devices won't enumerate and the hub built into  in my adapter doesn't show up in lsusb -t). I only found this when I went looking for trouble though ;-) since all the kit I usually hang off a docking adapter is USB2.
Thanks for clarifying. I kind of expected USB3 to be broken. My cheap HDMI + USB3 adapter is supposed to arrive today, maybe I'll get around to do some testing and fixing this evening.
Manjaro ARM

Kernel dev
Buy me a coffee
#75
(12-03-2019, 04:22 AM)danielt Wrote: ...
PS One thing I have discovered since posting yesterday is that there do seem to be some problems with USB3 devices (USB3 devices won't enumerate and the hub built into  in my adapter doesn't show up in lsusb -t). I only found this when I went looking for trouble though ;-) since all the kit I usually hang off a docking adapter is USB2.

There is a difference between the various types of USB C Alternate mode with DisplayPort. All versions of USB C Alternate mode with DisplayPort do seem to allow USB 2, (480Mbps, half-duplex), to work. If a users wants 4K @ 60hz, then then they sacrifice the 2 USB 3 lanes so DisplayPort can use them.

Your device seems to be one that supports 4K @ 30hz, so it might be able to work with USB 3, as the vendor claims. We will have to wait for @tsys to see if there is an issue with USB 3 on our side.


I think most of us want the USB 3 port active, so we are looking for 2 lane DisplayPort devices. I wish we could determine that in advance of purchase. There are some on Amazon that do claim to be "USB C Alternate mode with DisplayPort" that also claim USB 3 support. But I am not yet ready to pull the plug. At present, I use a plain USB C to DisplayPort device, with no USB at all. Works fine for it's use to my 1080p monitor.
--
Arwen Evenstar
Princess of Rivendale
#76
Hi all,

I've just received the USB-C to HDMI + USB 3.0 adapter and could not resist the urge to try it out immediately. As it turns out there was a small logic bug in my extcon code preventing a hot-plugged displayport + USB 3.0 Adapter from having working USB 3.0.

Now all altmode DP + USB 3.0 docks should work fine. @danielt
Manjaro ARM

Kernel dev
Buy me a coffee
#77
To clarify for others reading this, the RK3399 SoC chip used in the Pinebook Pro supports USB C alternate mode DisplayPort.

When buying a USB C dock for video from the RK3399, the USB C dock must support USB C alternate mode DisplayPort regardless of the connector on the other end. Any other video connector, like HDMI or VGA, would be an active translator from DisplayPort to HDMI, (or VGA). Those should work fine.

However, there are USB C alternate mode HDMI devices which would NOT work with the Pinebook Pro. These are rarer, and came out months, (or was it years?), after USB C alternate mode DisplayPort came out as the first video alternate mode.

Last, a few USB docking stations have chips for the video using USB to the host computer. These are not USB C alternate mode video devices, (DisplayPort or other). You would likely need drivers for the chip used, and Linux ARM64 type drivers at that.

I suspect a Wiki page update will happen to describe how to select, use and troubleshoot such devices.

Edit: Here is a Wiki page link;

Wiki - Pinebook Pro - USB docks & USB C alternate mode video

As usual, feel free to correct, improve or comment, (good or politely bad).
--
Arwen Evenstar
Princess of Rivendale
#78
Now that I have a debug cable, I can confirm that the default Debian+MATE distro does boot with pinebook_pro_defconfig plus CONFIG_COMPAT, just (as sort of expected) without functioning video. Next stop: debootstrap!
#79
(12-05-2019, 02:05 AM)Solra Bizna Wrote: Next stop: debootstrap!

I wouldn't normally tour the threads here plugging my own work Smile ... but given you are already talking about debootstrap and that's exactly how my installer works then I'd love to see this tested from Debian Stretch (it should work but I've only tried running it on Debian Bullseye):


https://github.com/daniel-thompson/pineb...-installer
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#80
(12-05-2019, 04:28 AM)danielt Wrote:
(12-05-2019, 02:05 AM)Solra Bizna Wrote: Next stop: debootstrap!

I wouldn't normally tour the threads here plugging my own work Smile ... but given you are already talking about debootstrap and that's exactly how my installer works then I'd love to see this tested from Debian Stretch (it should work but I've only tried running it on Debian Bullseye):


https://github.com/daniel-thompson/pineb...-installer

This looks really promising! Thanks for the effort. LUKS encryption would be a beautiful addition, but I have retrofitted this on to other Debian-derived distros, post-install. In this case, it looks like a job for which the USB eMMC adaptor would be very useful!

— Jeremiah
— Jeremiah Cornelius
"Be the first person not to do some­thing, that no one has thought of not doing before’’
— Brian Eno, "Oblique Strategies"


Possibly Related Threads…
Thread Author Replies Views Last Post
  Upgrading Armbian from v24.2.1 gnome, breaks pinebook pro Sb2024 0 120 11-10-2024, 02:50 PM
Last Post: Sb2024
  Attempting to install Void Linux, boots into a black screen 9a3eedi 1 1,197 09-28-2024, 09:23 AM
Last Post: throwawayforvoid
  Pinebook pro won't boot after bootloader installation jwensouls 4 942 08-21-2024, 04:17 AM
Last Post: KC9UDX
  Slackware Linux working on PBP vxzero 0 604 06-05-2024, 04:30 PM
Last Post: vxzero
  [Pinebook Pro/Mobian/XFCE4] can fix touch or screen in greeter not both SynthGal 0 402 05-31-2024, 09:42 AM
Last Post: SynthGal
  Debian on Pinebook Pro u974615 7 2,900 03-31-2024, 10:11 AM
Last Post: u974615
  Pinebook Pro upgrading from the factory image yamsoup 12 4,116 02-22-2024, 04:02 PM
Last Post: tllim
  Help installing Manjaro on eMMC of Pinebook Pro pine4546464 4 3,230 12-13-2023, 07:22 PM
Last Post: trillobite
  Need Help Recovering Manjaro /boot Contents on Pinebook Pro calinb 6 3,512 12-11-2023, 03:47 AM
Last Post: calinb
  Gentoo on Pinebook Pro RELEASE jannik2099 54 103,915 12-08-2023, 11:25 PM
Last Post: tllim

Forum Jump:


Users browsing this thread: 6 Guest(s)