-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chromebook_kukui: status: krane (lenovo chromebook duet 10.1) #53
Comments
Is this https://github.com/hexdump0815/imagebuilder/blob/main/doc/install-to-emmc-on-arm-chromebooks.md a correct way of installing to emmc on ideapad duet 1.gen 4GB/128GB? |
yes - that should be the correct way |
@hexdump0815 I have some updated status based on a more recent kernel + userspace combination, it would be great if you can update the issue description with these. I think GNOME's tablet-style UI works pretty well on this device, so I've replaced xfce with it. It's still a little sluggish but it's somewhat tolerable. Software setup
Working
Needs workWill investigate in these when I have more time.
Broken
Notes
|
@vulpes2 - thanks a lot for the feedback - i have linked your comment in the issue description ... in case you find out anything about the still open topics, please followup here ... btw. fyi: i gave v6.6 recently a try and found a few regressions: hexdump0815/linux-mainline-mediatek-mt81xx-kernel@6a3ca0b - i did not find solutions for them yet |
I haven't had time to check out kernel 6.6 yet, but I did try to fix the digitizer with some level of success. The pressure range is now correct but rotation still doesn't work yet. Once I figure that out I'll send the quirks to libinput so we don't have to deal with downstream configs anymore. The udev rules can't be submitted to systemd because they're too generic, I'll have to make it more specific to the device before sending them to systemd . |
I was unable to get digitizer rotation to work properly, but at least it works properly in one single orientation now, which is better than nothing I guess. Here's the libwacom config that makes the digitizer configurable with gnome-control-center or kcm-wacomtablet. Add the file as [Device]
Name=hid-over-i2c 27C6:0E30 Stylus
ModelName=
DeviceMatch=i2c:27c6:0e30
Class=ISDV4
Width=5.35433
Height=8.54331
IntegratedIn=Display;System
Styli=@generic-no-eraser
[Features]
Stylus=true
Touch=false This is the libinput quirks file that fixes the trackpad and pen digitizer pressure range, place at [Google Chromebook Krane Trackpad]
MatchUdevType=touchpad
MatchName=Google Inc. Hammer
MatchBus=usb
MatchDeviceTree=*krane*
ModelChromebook=1
AttrPressureRange=20:10
[Google Chromebook Krane Stylus Digitizer]
MatchUdevType=tablet
MatchDeviceTree=*krane*
MatchBus=i2c
ModelChromebook=1
AttrPressureRange=1100:1000 |
Tested v6.6 with your configs on krane and nothing seems horribly broken so far compared to v6.5. The high pitched noise was still a problem as of v6.5. I made a small change to the dt on top of your patches, let's see if that will help with the problem. This is pretty hard to reproduce deliberately, so only time will tell if it actually works or not. Edit: the added delay does not help at all, root cause is somewhere else. diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-max98357a.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-max98357a.dtsi
index 2b60967c0c1c..32d0dc63bf5d 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-max98357a.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui-audio-max98357a.dtsi
@@ -9,5 +9,6 @@ / {
max98357a: max98357a {
compatible = "maxim,max98357a";
sdmode-gpios = <&pio 175 0>;
+ sdmode-delay = <2>;
};
}; |
Hi there, Piggy-backing on this discussion as I just installed 230917-01 ubuntu jammy on my Lenovo IdeaPad Duet Chromebook 10.1 (MT8183), running GNOME 42.9 (alternating between Xorg and Wayland) and kernel version 6.1.51-stb-mt8+. @vulpes2, your instructions above worked beautifully on my system with Lenovo USI pen! Tested by doodling in inkscape and krita. The latter one amazed me: I thought this USI pen was defect as it never worked properly on Chrome OS, but with Krita is works so incredibly well, it's an absolute pleasure to draw! Other than that, the system seems to run as one would generally expect (comparing with other computers I own with Intel processors running different versions of Ubuntu and Debian), no major disasters so far. Hardware acceleration works as described above, tested with firefox and youtube videos (huge difference). Broken
Do you think upgrading to kernel 6.5 or 6.6 would fix the screen rotation issue? |
Thank you for the feedback, I was particularly interested in the USI pen because I was not 100% sure if it was just my USI pen or digitizer being weird or not. Given it's not a defect on my device, I will be able to send these quirks to libinput now.
By default the sensor orientation is 90 degrees off. Please make sure you have added this udev rule mentioned above to correct the sensor mount orientation. Keep in mind that even if auto-rotation is disabled on GNOME when the device is not in tablet mode (keyboard folded to the back or detached), it will still auto-rotate your screen to the default/upright orientation according to the sensor when the machine is woken up with the keyboard attached, which is why you're seeing an incorrectly rotated screen after waking up the device from standby. The udev rule will address that and all the orientation issues should be gone after you add it, I don't think upgrading the kernel is necessary. |
Thank you for explaining! Adding that udev rule has indeed fixed the rotation issue.
Ah, tablet mode! What confused me was Xorg, it was rotating the screen regardless of the keyboard position, I thought that was the expected behavior. Now it all makes a lot of sense. With the orientation being fixed, Gnome on Wayland behaves as a laptop with the keyboard attached and "unfolded", and as a tablet when the keyboard is detached or folded to the back.
Happy if I can help! Anything else I should test? |
i just wanted to say that i'm very happy to see some activities like this here, i.e. extending the functionality of the images and sending fixes back upstream (like for libinput in the above case) ... my idea with the images was to make it easier to get started on certain hardware (like chromebooks in this case) as in the past it was always quite painful to get normal linux running on them (booting, partitioning, quirks etc.) ... in case you have anything we can bring into future images i'm happy to merge pull requests adding extra config files etc. via systems/chromebook_kukui/extra-files (in case the changes are not of a generic nature it might still be possible to bring them in as file.sample or commented out), also adding extra config and setup info via systems/chromebook_kukui/doc/some-file.md might be a good option once everything has settled around how to do certain things. |
@hexdump0815 I've opened a few pull requests to do some basic cleanup but most of these aren't specific to krane.
The libinput quirks for krane and wormdingler will be submitted to libinput very soon, but the udev rule will probably have to remain downstream for now since udev doesn't seem to be able to apply dt based filtering with hwdb like libinput can with the quirks database, so if you don't have ACPI it seems to be all-or-nothing unfortunately. On top of that, the udev rule from the pmos wiki seems to be a hack too, I found out that the property was applied to every single input event devices on the system, which doesn't necessary break anything but probably still not a good practice nonetheless. @janamach If you're on GNOME you may encounter this bug too, where the touchscreen will become unresponsive and appear frozen until you press Esc on a physical keyboard. It's reportedly fixed in 45 but I don't know if that will be backported to older releases: https://gitlab.gnome.org/GNOME/mutter/-/issues/3181 |
@hexdump0815 I really appreciate your initiative with the images! At this point I still lack a lot of knowledge for being able to port a device myself, so I admire those who can. This said, I now own a super awesome tablet all thanks to your project. Thank you :) @vulpes2 I have not encountered that bug specifically yet, but I've observed the following weirdness on GNOME:
What works consistently is the USI pen, I am still amazed. I wanted to trash that thing, it was frustratingly useless on Chrome OS and every web search would lead me to posts of other people complaining. Some said they sent theirs back and received a functional replacement from Lenovo, so I thought mine is just broken (or from a bad batch). But now am convinced it's all software. Weird that Lenovo and Google couldn't get it to work properly, this pen had so much hidden potential. |
The first gen Lenovo USI pen is widely reported to be broken, mine actually drains its battery within a month which is super irritating. USB-C display output is completely broken at the moment, there is a video converter chip in the signal path that doesn't seem to be working properly with mainline kernel (there was a patch to add it to the dt), the exact reason is unknown thus far. |
As I see. External display output is not a big deal for me, I wasn't planning on using it like that anyway. Not sure if my USI pen drains the battery like that. I did have to replace it a couple of times, I'll keep an eye on it now. The main problem with it was that it was "too sensitive": it would write and click on things while the tip was not touching the screen. IIRC, this distance to the screen when it would start doing things was also not consistent. People reported that different hacks worked for them, e.g., removing the battery for some time and inserting it back in while pressing on the tip, or inserting a spacer ring just above the tip and so on. None of that really worked for me, it was too uncomfortable to use. I also did not find a good use for Chrome OS, so I left the whole thing lying in the corner for months. Until now ;-) External display output is not a big deal for me, I wasn't planning on using it like that anyway, a linux tablet with a working pen is the thing that was missing in my life :-) Would be nice to have the mic and the cameras working though. Anyone working on those issues? |
@vulpes2 - thanks a lot for the pull requests - they all looked good to me and i already merged them external display via usb-c never really worked with mainline on kukui as far as i know - the patch floating around seems to only add the corresponding dt pieces from the chromeos kernel, but i think the type-c code in chromeos has some extras needed for that, which are not in mainline ... i'm not sure, but maybe this looks like something getting closer there with mainline: https://patchwork.kernel.org/project/dri-devel/cover/[email protected]/ - i'm not 100% sure and did not play around with it myself yet though |
So for this I found a really simple fix. First you need to identify the Stylus using |
Hi I am not sure if this is the right place to ask but I recently got a Lenovo Chromebook Duet 10.1 and it came with Ubuntu 22.04 installed by someone. I want to know if there is a way to wipe the Linux system and restore it to Chrome OS? I did some searching but have yet found anything useful. I tried MrChromebox's script but it says ARM64 devices are not supported. Can someone post a link to any guide related to my issue? Thank you very much! |
Follow the instructions here: https://support.google.com/chromebook/answer/1080595?hl=en, ignore the "less invasive steps", start from |
Is there any way to get a bootable image of this so that we don't have to try to get all that set up after installing? |
@osfanbuff63 are you looking for this or something else? https://github.com/hexdump0815/imagebuilder/blob/main/systems%2Fchromebook_kukui%2Freadme.md |
Those still run on XFCE last time I tried, but I'll check it again to make sure |
so i got my hands on duet 10.1 |
@LukIsHere - i also ran into this problem that the battery-disconnect option does not seem to work for krane ... you can ccd open it via suzyqable (see: https://github.com/hexdump0815/linux-mainline-on-arm-chromebooks) and in case you do not have one (i would really recommend to get/build one if you deal with as many chromebooks as you do now :) ) then maybe search around a bit for "sh1mmer" - with that approach and some modifications i was even able to get linux booted from usb on a krane with dead emmc (and thus no regular way to ccd open it and make it boot from usb due to the battery problem you mentioned) :) |
there is no way i can order one at reasonable price, and building one |
@LukIsHere - too large images sound like kernel and initrd are not heavily enough compressed - see https:/https://github.com/hexdump0815/imagebuilder/blob/main/doc/install-to-emmc-with-luks-full-disk-encryption.txt#L213-L231 and /github.com/hexdump0815/imagebuilder/blob/main/doc/install-to-emmc-with-luks-full-disk-encryption.txt#L235-L285 - this way it can be made small enough (i.e. < 32m) - no idea if there is a way to teach dethcharge tools this - i did not look into it yet |
lack of compressing is least of my concerns since it doesn't boot |
Hi, are we expected to get any new updates for the new Ubuntu releases (23, 24)? |
@tech-with-mo if you need a newer version of ubuntu just update ur /etc/apt/sources.list to ubuntu 23/24 one and run |
@tech-with-mo - i plan to build newer version, but just do not have the time for it right now - i already added ubuntu noble support to the framework, but found some problems on my first test images which i'll have to sort out first ... what @LukIsHere suggested might work for some setup or not for others (zstd compressed kernel modules in ubuntu noble being the biggest problem - see hexdump0815/kernel-config-options@592147c ) ... newer images will come, its just not clear yet when |
i got the suzyqable and manage to disable hardware wp on different chromebook but not this one is there any workaround/different method for it? also the ttyUSB* doesn't showup on debian devices only chromeos devices, any way to fix that too? |
@LukIsHere - that was quick for the suzyqable, nice to hear that you got one working - for krane (and tablets in general - i would say in in general for all chromebooks actually even) the pp button is the power button (on the tablet part for krane) - just a quick press is enough usually ttyUSB* devices should also show up on debian, but will not on kukui devices (and maybe other chromebooks with mainline kernel too) as the usb stack seems to still be a bit buggy for them, at least buggy enough for not working well with the suzyqable ... one thing to also keep in mind is that the orientation in which the suzyqable is plugged into the target device (chromebook to ccd open) matters - it only works in one direction/orientation good luck and best wishes - hexdump |
@hexdump0815
kukui
but works on corsola
would it be good idea to use the chromebook spin of kelner for kukui/trogdor? |
@LukIsHere - what exactly is broken? (i lost the overview a bit) ... it does not work to use the trogdor kernel for kukui as they still need different sets of patches (trogdor close to none, but kukui need still quite a few) and as put together at the moment also the required dtb files for the other wardware are not included. |
@hexdump0815 it simply doesn't appear when |
@LukIsHere - it could be that the usb stack has a problem on both kukui and trogdor - i remember that kukui was always a bit problematic regarding usb but i never tried trogdor ... what might be worth a try it to give a newer kernel like v6.10 a try on kukui - i did some tests with v6.9 some weeks ago and usb looked a bit better, but sadly the display support was broken on krane (which i tested it on) |
yeah, squable isn't the only thing not working i have also usb cd reader that works only on corsola |
6.9 doesn't fix the suzyqcable, 6.10 even breaks usb :3
but there still is no tty
|
looks like usb on kukui is not in a good shape right now - i'll have to look deeper into it once i find a bit more time |
Touchpad quirks for krane, wormdingler and coachz have been submitted to libinput. The pen pressure issue is not the fault of the digitizer and cannot be upstreamed, because the Levovo USI Pen is defective. Many people have been experiencing similar issues in ChromeOS as well with this specific pen. Will try to get the digitizer rotation and gyro offset fixed upstream when I have more time. |
Touchpad quirks for krane, wormdingler and coachz have been merged and will be in the next libinput release. There are a few more things that needs to get done, will get to them at some point.
|
Looked into the mic gain situation, there is nothing we can tweak in the codec, CRAS is applying a 20db software gain via the |
@vulpes2 - first a big thank you for all your effort and double so for bringing all that to mainline of the corresponding projects which i would say is absolutely amazing ... regarding the mic gain boost, did you see my note in the readme of kukui to maybe use "pactl set-source-volume 1 400%" - 400% (i think that was the limit, but not completely sure anymore) would at least be 12db, still not 20db - maybe the more and more upcoming pipewire offers more options for such a fixed gain within the audio chain ... the target for the next round of images would be debian trixie where we should maybe try to switch to pipewire for audio if easily possible and if it would help for such things ... |
I did see the notes about the 400% volume with pulseaudio, I'm hoping there's a way to "hide" that 20db gain somewhere, so the end user still gets a "normal" 0-100% volume control that actually works as intended. I skimmed through the existing upstream UCM configs and they all use hardware gain controls, which is not available on this particular audio setup. PipeWire doesn't have the ability to apply audio gain transparently either. |
Can i update simply but clicking on the upgrade to ubuntu lts 24? |
@EnderRobber101 no there is no server image updating to newer ubuntu cause problems atm so i would avoided it, you can use latest debian without any issues |
(1) Restored ChromeOS by pressing UP+DOWN+POWER With downloaded the latest release /// DID do-release-upgrade AND WIFI NOT WORK ANYMORE. Can the docs be cleaned up?
Is old link |
Notes on krane running 5.18.1 - for updated information please have a look at this comment below: #53 (comment):
Here is list of working and non working features on the lenovo chromebook duet 10.1 (krane).
Working
untested
broken
Installation
coming soon
PROBLEMS
none so far
The text was updated successfully, but these errors were encountered: