Jerror

Jerror

Forum Replies Created

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #69539
    Jerror
    Participant
    • Posts: 14

    I just tried Linuxium’s latest spin (julyshakedown, 4.13rc1). Audio situation is the same as my Arch 4.12 install: no sound by any means, even with the UCM files installed. How are you getting headphone audio? Incidentally, if you don’t see any audio devices listed/can’t change volume with hardware keys, set “realtime-scheduling = no” in /etc/pulse/daemon.conf. Pulseaudio currently has an issue with hdmi-audio on Cherrytrail and this is a workaround.

    On the latest kernels the only thing blocking backlight control is the pwm driver: pwm-lpss and pwm-lpss-platform have to be loaded early (ie., in initramfs) so that they’re available to i915 on init; if they’re not loaded you’ll see “[drm:pwm_setup_backlight [i915]] *ERROR* Failed to own the pwm chip” and have no backlight control. I’m not sure how to get these drivers if they’re not in your kernel, but if they’re available as modules or builtin just add them to initramfs and you’ll get backlight; eg., in the latest Linuxium spin they’re installed as modules (check lsmod), so just add them to initramfs the Ubuntu way:

    • Add lines to /etc/initramfs-tools/modules with the name of each module, pwm-lpss and pwm-lpss-platform
    • sudo update-initramfs -u

    Reboot and enjoy backlight control!

    I found most of this wisdom on Hans de Goede’s blog. He’s been working on Cherry Trail support in Fedora, and is responsible for a lot of recent support in trunk kernel.

     

    #69354
    Jerror
    Participant
    • Posts: 14

    I don’t know, I don’t have a Hi10 Plus, but the latest kernel in arch testing (4.12.2-1) works just as well as the custom hi10pro kernel above sans backlight control. I think it’s likely that if you build the customized kernel above (or even just install the packages I linked) it’ll work on the Plus just fine, but they’re packaged for the Arch Build System / pacman. It’d be far easier to just install whatever 4.12 kernel is available in the Linux Mint repositories; you ought to get battery monitoring, OOTB wifi and a more stable system overall. Maybe try out Linuxium’s latest Ubuntu LiveUSB; I never got around to it but it’s 4.12-based so it should let you test the new functionality.

    #69094
    Jerror
    Participant
    • Posts: 14

    Here: https://github.com/onitake/gslx680-acpi

    You’ll need the firmware silead_ts.fw from https://github.com/onitake/gsl-firmware/tree/master/firmware/chuwi/hi10_pro

    Copy the firmware to /lib/firmware/silead_ts.fw then build and install the gslx680 driver (make; sudo make install). Load the driver module (modprobe gslx680_ts_acpi) and you should have a working touchscreen. The module ought to load automatically on boot. You’ll have to rebuild the driver every time you upgrade the kernel, but it builds instantaneously so that’s no issue. Firmware and instructions courtesy of angellsl10, he provided them earlier in this thread.

    #68899
    Jerror
    Participant
    • Posts: 14

    It’s not yet in the kernel (ie., 4.12-rc6) but practically that’s no problem. The driver is quick&easy to build and install. And compared to the nigh necessity of OOTB wifi and battery, touchscreen would only be ‘nice’.

    I didn’t check for error messages involving the touchscreen after installing the kernel, by the way; it just didn’t work, so I installed and enabled it as per usual. Was Goodix support expected?

    #68855
    Jerror
    Participant
    • Posts: 14

    IT WORKS! I built https://github.com/danielotero/linux-on-hi10 (kernel 4.12-rc6 configured for the Z8350 Hi10 Pro) on my Z8300 Hi10 Pro and it went off without a hitch. Got video, backlight control, battery monitoring, and wifi OOTB. Kernel took about 6.5 hours to build; I had to do it from tty so that the additional drain of gnome wouldn’t overpower the charger. Here’re the compiled packages, for all you impatient Archers:

    linux-hi10-4.12-4-x86_64.pkg.tar.xz

    linux-hi10-headers-4.12-4-x86_64.pkg.tar.xz

    linux-hi10-docs-4.12-4-x86_64.pkg.tar.xz

    After nearly a year, my tablet is finally convenient for regular use 😀

    #68799
    Jerror
    Participant
    • Posts: 14

    I don’t know about the Plus, but all of the above works with the Pro. The tablets are adjacent in their series and nearly identical so it’s reasonable to hope the experience will be similar.

    On the Pro:  Linuxium’s respin should install however Ubuntu does, straight to disk. I wiped the whole drive for stock arch linux, works fine except no audio battery & backlight, and wifi & touchscreen drivers need to be installed manually (and a BIOS setting flipped for wifi), and the latest kernel which works is 4.9 (on arch, install the “linux-lts” packages instead of “linux”). MicroSD is hit or miss; Sandisk didn’t work for me, and 128gb support is choppy (fails to mount on boot) but the situation has been improving (since 4.9 I’ve been able to get the card to mount be reinserting until it succeeds, beforehand I had to reboot). I haven’t tried putting Windows back on. There’s no special steps to follow, it works just like a laptop — especially since you don’t care to save the remix/windows partitions.

    Thanks for the link to the hi10pro kernel config! Seems there’s a patch to fix the no-video bug in recent kernels, and even better it seems in the latest rc the patch is unnecessary — and battery monitoring works! I have the Z8300 model and the repository is for the Z8350 model, but the differences are trivial so I’m hopeful. I’ll give it a shot and report back.

    #67595
    Jerror
    Participant
    • Posts: 14

    I tried to find something in logs when this first happened a few months back, but iirc there was no indication that anything had gone wrong in the journals. I could even log in (and I think I was able to succesfully run startx) by typing blind, according to the journal. The system didn’t seem to know anything was wrong but the screen was blank as of modesetting during boot (black but backlit).

    Has anyone got a battery monitor working? That’s the last, crucial piece of this thing being usable…

    #67588
    Jerror
    Participant
    • Posts: 14

    I’m glad that 4.9 works! If there’s no fix for this then at least it’s convenient that the last good kernel is LTS. I’m running arch 4.9.30 right now, no problems yet.

    There’s not much hope for a BIOS fix. I have the latest version before Chuwi changed the product line.

    #67562
    Jerror
    Participant
    • Posts: 14

    The Cherry Trail support in the new kernels looks great, but unfortunately I haven’t got video to work with any kernel since 4.8.13 on my Hi10 pro (X5-Z8300). Modesetting sends me right to a black screen. I’ve tried loads of pci and graphics-related kernel parameter tweaks and the only way to boot with video is through nomodeset on the new kernels, while the new intel drivers work fine with the old kernels. My best guess right now is bad EDID.

    closest to 4.8.13 I tried was 4.10.1 (arch), no success; also tried 4.2.rc2 (ubuntu) with same error

    #56085
    Jerror
    Participant
    • Posts: 14

    Warning for triple-booters: the previous OS and the manner which it was exited effects the ability of the machine to boot. I used the desktop shortcut to switch from Windows to Remix, which crashed after half a minute presumably because I had SDIO set to PCI; so I flipped the setting to ACPI and rebooted, and Remix worked. But then after rebooting and flipping back to PCI, linux could not make it to the login screen. So I booted Windows and restarted, but then would freeze when I tried to open the BBS. Finally, I disconnected all devices and let the system get to the Remix/Windows splash, then forced it off while Windows was loading, and afterwards was able to boot Linux just fine. Note, I’ve installed grub on the Remix EFI partition.

    After selecting a different operating system at the Remix/Windows splash than previously booted, the machine has to reboot. It may be that the Remix configuration is incompatible with Linux, or with Linux booting from the Remix-owned EFI; or that the “switch os” shortcuts in Remix and Windows are unsafe.

    #56033
    Jerror
    Participant
    • Posts: 14

    I patched to Linuxium’s latest kernel, which has the I2C fix. The errors are gone, but there’s no new functionality; I haven’t gotten anything to work that didn’t before. The system is noticeably more responsive now, though, and the backlight problem has become clearer: “[drm:pwm_setup_backlight [i915]] *ERROR* Failed to own the pwm chip”. Probably no easy fix… software controls will do. Just wish I could get a battery meter! And I’ll have to give angellsl10’s soundcard patches a go sometime.

    #56032
    Jerror
    Participant
    • Posts: 14

    Sure, I’ll give that a try! For audio I think I’ll need a driver, but I’m still hoping for backlight control and battery info. So far I’ve only been able to adjust software gamma levels with xrandr –brightness; xbacklight doesn’t work, and ddccontrol doesn’t work (no busses have an EDID). If new kernels have added the acpi i2c driver then I should be able to leave the UEFI SDIO setting on acpi, so I won’t have to toggle it for Remix!

    #56029
    Jerror
    Participant
    • Posts: 14

    Yup, here’s the alsa report: http://www.alsa-project.org/db/?f=13e9900d1e9f0f02f7a91552894fbf7081fb5232

    It only reports on the HDMI audio line. The internal audio chip doesn’t load at boot, with error “intel_sst_acpi 808622A8:00: No matching machine driver found”. Earlier I see “8086228A:00: ttyS4 at MMIO 0x91821000 (irq = 39, base_baud = 2764800) is a 16550A” and “8086228A:01: ttyS5 at MMIO 0x9181f000 (irq = 40, base_baud = 2764800) is a 16550A”. angellsl10 got his audio line out working, but I’m not sure how to follow his method. I haven’t done driver stuff before!

    I have many other I2C errors which seem to come down to this: “i2c_designware 808622C1:06: punit semaphore timed out, resetting”. It looks like this is a known bug on Cherry Trail (perhaps x5-8300 in particular) boards, which has roots in a missing acpi iosf_mbi driver (Linux only has the pci driver): https://bugzilla.kernel.org/show_bug.cgi?id=155241.

    In /sys/bus/i2c/devices I have

    i2c-0                     i2c-11  i2c-2  i2c-6  i2c-BOSC0200:00   i2c-MSSL1680:00
    i2c-1                     i2c-12  i2c-3  i2c-7  i2c-CPLM3218:00   i2c-OVTI2680:01
    i2c-10                   i2c-13  i2c-4  i2c-8  i2c-INT33FE:01      i2c-OVTI2680:02
    i2c-10EC5651:00  i2c-14  i2c-5  i2c-9  i2c-LNXVIDEO:00

    The sound card is listed as 10EC5651.

    Edit: the enumerated devices are:

    $ i2cdetect -l
    i2c-3    unknown       i915 gmbus dpc                      N/A
    i2c-13    unknown       Synopsys DesignWare I2C adapter     N/A
    i2c-1    unknown       i915 gmbus vga                      N/A
    i2c-11    unknown       Synopsys DesignWare I2C adapter     N/A
    i2c-8    unknown       DPDDC-D                             N/A
    i2c-6    unknown       DPDDC-B                             N/A
    i2c-4    unknown       i915 gmbus dpb                      N/A
    i2c-14    unknown       Synopsys DesignWare I2C adapter     N/A
    i2c-2    unknown       i915 gmbus panel                    N/A
    i2c-12    unknown       Synopsys DesignWare I2C adapter     N/A
    i2c-0    unknown       i915 gmbus ssc                      N/A
    i2c-9    unknown       Synopsys DesignWare I2C adapter     N/A
    i2c-10    unknown       Synopsys DesignWare I2C adapter     N/A
    i2c-7    unknown       DPDDC-C                             N/A
    i2c-5    unknown       i915 gmbus dpd                      N/A

    #55919
    Jerror
    Participant
    • Posts: 14

    I’ve got a Hi10 Pro with the keyboard and HiPen2 stylus. I gave Linuxium’s 16.10 Gnome image a go. Bluetooth works out of the box, wifi works after compiling the driver — but I have to set SDIO to PCI. The touchscreen works well with angellsl10’s firmware. HUGE thanks to angellsl10 and BBaker! The system seems stable and I’m pretty happy with it.

    However, with Linuxium’s kernel I haven’t been able to change the brightness or monitor the battery. Those are pretty important… part of the proballlem seems to be the dire dearth of acpi modules in this inst. The only power supply device is an adapter (“ADP1”) though I’m running off battery, and I have 8 acpi_backlight devices which don’t do a thing. I’d like to try to get an intel_backlight up to control screen brightness but when I try to generate an xorg.conf (“X -configure”) X complains that there are no devices; it doesn’t recognize the intel chip.

    I haven’t tried to get sound working. alsa 1.1.2 (the version in Linuxium’s latest images) doesn’t have the chip’s driver. The touchscreen works very reliably, though; loads on every boot (with gslx1680_acpi_ts added to init modules), and even the pen works! The pen is awful, by the way. Outside of linux it is slow and unreliable; in linux you can see why: there’s really horrible random noise in its cursor location which Remix and Windows take large samples of to smooth out.

Viewing 14 posts - 1 through 14 (of 14 total)

Lost Password

Skip to toolbar