Skip to content
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

Stylus not working Chuwi HI10 X #431

Open
Ebbot9876 opened this issue Jul 27, 2020 · 20 comments
Open

Stylus not working Chuwi HI10 X #431

Ebbot9876 opened this issue Jul 27, 2020 · 20 comments

Comments

@Ebbot9876
Copy link

My stylus equipped with Chuwi HI10 is not working in Chrome OS.
It´s detected with evtest but not working in UI.
evtest.txt
lsmod.txt
dmesg.txt

@sebanc
Copy link
Owner

sebanc commented Jul 28, 2020

Which recovery image do you use ?

@Ebbot9876
Copy link
Author

Rammus now 84, tried octopus and reef!

@sebanc
Copy link
Owner

sebanc commented Jul 28, 2020

Could you try to add "--has-internal-stylus" to /etc/chrome_dev.conf ?

@Ebbot9876
Copy link
Author

I have already tried!

@sebanc
Copy link
Owner

sebanc commented Jul 28, 2020

Could you look for the "Pen" input device path in your dmesg and post the output of udevadm info <path_to_input_device_sysfs> ?

@Ebbot9876
Copy link
Author

I don`t know if this is right?...
udevadm info -q path /dev/input/event26
/devices/pci0000:00/0000:00:17.0/i2c_designware.4/i2c-9/i2c-GXTP7386:00/0018:27C6:011A.0005/input/input26/event26

@sebanc
Copy link
Owner

sebanc commented Jul 29, 2020

Try udevadm info /sys/devices/pci0000:00/0000:00:17.0/i2c_designware.4/i2c-9/i2c-GXTP7386:00/0018:27C6:011A.0005/input/input26/event26

@Ebbot9876
Copy link
Author

Hi, here is output from udevadm!
Path has changed.
udevadm.txt

@Ebbot9876
Copy link
Author

@sebanc I tried latest FydeOS with 5.4 kernel, stylus works fine there!
Is it possible to use 5.4 kernel with brunch?

@sebanc
Copy link
Owner

sebanc commented Aug 29, 2020

I have added you to the brunch-next repo which has 5.4 kernel so that you can test

@Ebbot9876
Copy link
Author

I have tested!

  • Stylus still not working!
  • Camera still rotated.
  • Play store not working.

@SeanJean09
Copy link

SeanJean09 commented Dec 10, 2020

any updates with this? I updated my Chuwi Hi10X to the latest brunch release and updated chrome to 87, here are some of my issues:

  • stylus not working
  • screen rotated to portrait, even on startup (has to set my Display to 90 degrees on Settings)
  • rotation sensor not working
  • camera rotated to portrait
  • front camera not working

by the way, I used rammus. haven't tried octopus or others yet as I've used this OS as my daily driver

@sebanc
Copy link
Owner

sebanc commented Dec 11, 2020

I think the screen and camera rotation had been fixed in a previous versions but I forgot to include the patch in the 5.4 kernel, could you confirm that they work correctly with the previous release (Brunch r86 k4.19 stable 20201014) ? I will add the patch in 5.4 kernel.

Only Intel hid sensors have been ported to work with brunch and your device use different ones so rotation will not work.

To be honest I have no idea why stylus won't work on this device, it is the only issue of this type that I have seen.

Chromeos OS r87 seems to have camera issues.

Globally, for now I would suggest to use Brunch r86 k4.19 stable 20201014 and chromeos r86.

@Ebbot9876
Copy link
Author

I tested r86 4.19 version about two months ago. Then screen turned upside down.

@SeanJean09
Copy link

I think the screen and camera rotation had been fixed in a previous versions but I forgot to include the patch in the 5.4 kernel, could you confirm that they work correctly with the previous release (Brunch r86 k4.19 stable 20201014) ? I will add the patch in 5.4 kernel.

Only Intel hid sensors have been ported to work with brunch and your device use different ones so rotation will not work.

To be honest I have no idea why stylus won't work on this device, it is the only issue of this type that I have seen.

Chromeos OS r87 seems to have camera issues.

Globally, for now I would suggest to use Brunch r86 k4.19 stable 20201014 and chromeos r86.

no, the screen is upside down. have to set my screen to 180 degrees that time. same with the camera. I'll still use this update though as I'm not using the camera that much. I just wosh there's something we can do to fix the stylus issue, as I mainly use this as a whiteboard for my lectures

@sebanc
Copy link
Owner

sebanc commented Dec 11, 2020

I uploaded a build which should hopefully fix screen and camera orientation in the "brunch-testing" repo.

For the stylus, I looked at your old evtest log and it seems that chromeos does not enable input devices if they do not provide ABS_X and ABS_Y values which is the case here:

bool EventDeviceInfo::HasTablet() const {
  return HasAbsXY() && HasPointer() && HasStylus();
}

in https://source.chromium.org/chromium/chromium/src/+/master:ui/events/ozone/evdev/event_device_info.cc

There is not much I can do about this, if there is a bios/touchscreen firmware for your HI 10 you can try to apply it.

@SeanJean09
Copy link

I uploaded a build which should hopefully fix screen and camera orientation in the "brunch-testing" repo.

For the stylus, I looked at your old evtest log and it seems that chromeos does not enable input devices if they do not provide ABS_X and ABS_Y values which is the case here:

bool EventDeviceInfo::HasTablet() const {
  return HasAbsXY() && HasPointer() && HasStylus();
}

in https://source.chromium.org/chromium/chromium/src/+/master:ui/events/ozone/evdev/event_device_info.cc

There is not much I can do about this, if there is a bios/touchscreen firmware for your HI 10 you can try to apply it.

I've tested the unstable build and the screen is fixed. thanks for that! the camera is in the right orientation as well, but it's flipped/mirrored, but it's fine since we can flip it again after taking a picture.

The firmware of this specific tablet is only Windows-based, and the manufacturers never made a way for us users to use other Linux-based OS. I tried Linux Mint and PopOS before and they seem to have some form of support on the Pen/Stylus Input for this. I just don't know how I can use their implementation for Chrome OS

@sebanc
Copy link
Owner

sebanc commented Dec 13, 2020

Mint and PopOS just use libinput which does not care about ABS_X and ABS_Y, unfortunately there is no way to replace the chromeos touch/stylus driver.

@robs421
Copy link

robs421 commented Jan 1, 2021

Hi, i am a noob with regards brunch and Chromeos installation. I am running a mercer guru laptop with celeron chipset, i have win 10 pro on the internal 64gb drive and chromeos running on a 256gb m.2 drive. I have a similar problem as Ebbot, everything works fine. Only there is no stylus support. I read through the above, but i dont know how to apply the fix suggested by editing the chrome_dev file. Would you mind explaining in layman terms? Thank you.

@ccchan234
Copy link

any news in 2023? thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants