Ubuntu на Intel z8350 (chuwi hi10 pro)?
Эта проблема присутствует в драйверах 375 и 378 .
Учитывая, что просто уничтожение процесса компиляции устраняет проблему с плохими границами, я протестировал решение, которое работает на моей системе Ubuntu 16.04 каждый раз после system!
Шаг 1:
Я создал скрипт под названием fixbadborders в каталоге /lib/systemd/system-sleep. Он содержал следующее:
Шаг 2:
Разрешил сценарию иметь разрешение на выполнение с помощью:
Чтобы удалить этот скрипт: [ ! d6]
2 ответа
Я недавно переключился от Manjaro до Ubuntu 18.10
Несколько вещей:
a) для сенсорного экрана:
Необходимо выполнить эти шаги:
1. Установите драйвер:
Клонируйте репозиторий от https://github.com/onitake/gslx680-acpi
сделать
insmod./gslx680_ts_acpi.ko
Затем Вам нужно корректное встроенное микропрограммное обеспечение (необходимо выбрать корректную модель Chuwi Hi 10 Pro (на основе начала порядкового номера), переименовать silead_ts.fw к mssl1680.fw:
https://github.com/onitake/gsl-firmware/tree/master/firmware/chuwi
Затем необходимо калибровать экран. Скрипт, который можно запустить с приложениями запуска, в https://github.com/danielotero/linux-on-hi10/blob/master/touchscreen/rotation
Вы, возможно, должны изменить «DSI1» на «DSI-1»
2. Аудио: Ubuntu 18.10 уже имеет его установка главным образом так все, что необходимо сделать:
скопируйте код с: https://gist.github.com/Orochimarufan/d8e42cfaa32c2cdd13640dad6a10b847 и сохраняют его как speakerEnable.c
Затем: сделать
Эта программа должна работать как корень, когда Вы входите в систему поэтому, необходимо превратить его на службу для работы запуска (если Вы вручную не хотите сделать./speakerEnable каждый раз, когда Вы хотите динамики), https://unix.stackexchange.com/questions/202698/how-can-i-run-a-program-as-a-root-user-when-my-ubuntu-15-04-machine-starts-up
Я надеюсь, что указания являются четкими. При необходимости в разъяснении по поводу того, как сделать (скомпилируйте c программу), или что-либо еще, спросите. Это требовало времени для настраивания планшета приятно.
Я недавно переключился с Manjaro на Ubuntu 18.10. Несколько вещей: a) для сенсорного экрана: Вы должны выполнить следующие шаги:
и затем загрузить модуль
Запуск dmesg должен выдать какой-то вывод, если драйвер был согласован с устройством. Вы также должны увидеть сообщение от подсистемы ввода о том, что было добавлено новое устройство ввода.
Источник
Linux для chuwi hi10
Support for running Linux on Chuwi Hi 10 Plus
First of all I want to link this awesome guide I originally followed to get Linux working on my Chuwi Hi 10 Plus — Linux On Hi10. Fortunately, by now, new kernel versions were released and the out of box support is pretty decent.
So, after installing Linux (Lubuntu 4.15) I did have only two major issues remaining:
- Backlight Support
- Audio Support (only headphone jacket)
- Screen Resolution
- Touchscreen
1. Backlight Support
After some further research I found out, that when the kernel modules are loaded, i915 gets loaded before the PWM chip is initialized. This means that the PWM chip cannot be owned and therefore backlight isn’t working.
Fix: delay the loading of the kernel module i915
Therefore I’ve just added this line to the end of the following file /etc/modprobe.d/blacklist.conf: blacklist i915 => This will result in the kernel module i915 not being loaded at boot, which will in turn allow the PWM chip to be owned.
Now, we actually just want to delay the loading of this kernel module, not fully deactivate it, therefore we need to load this kernel module after all other modules. For this specific purpose I’ve activated the rc.local for Ubuntu which is initially disabled (as you should use systemd instead) and just added the following line to /etc/rc.local:
And the start_i915.sh script is defined as:
This script will be executed as root (by rc.local) before the login screen of Linux appears and load the i915 driver. Voilá, enjoy your working backlight.
2. Audio Support
Another problem I’ve faced was, that even with the above mentioned guide by @danielotero, neither my headphone jack nor my integrated speakers were working.
Fix: blacklist sndi_hdmi_lpe_audio
There’s a helpful discussion following this link https://github.com/danielotero/linux-on-hi10/issues/8 regarding sound, please feel free to check out this discussion as well. However, I decided to not follow the mentioned approach of manually compiling a file and sticked to this:
Add another entry to /etc/modprobe.d/blacklist.conf: blacklist sndi_hdmi_lpe_audio
After this you just need to download the following file «bytcrrt5651.zip». I unfortunately do not know from which github discussion I got the link to those files, but however I will upload them at this repository as well, but please remember: this is not created by me and I do not own those files. If you know which courtesy this is, please leave a comment. After you’ve downloaded the zip — file, extract it and move the two folders to /usr/share/alsa/ucm (replace the already existing directories if necessary).
=> In the end this worked out for me to have at least a working headphone jack — in case of any recommendations or further improvements leave me a comment.
3. Screen Resolution
As I was not happy with the original 1920×1200 resolution I downscaled to 1024×688. Just execute the following commands to add this resolution:
Now you can just add it to a shell script and execute it every time your system starts.
As I do currently use Lubuntu or i3wm I do not need to have the touchscreen enabled and working. If I want to do something with my touchscreen I just boot into my Windows on my Chuwi :). But if you do want to know how, please also refer to above mentioned guide.
I hope this guide was able to help you and you’ll be able to enjoy your nice working Linux on the Chuwi Hi 10 Plus. If you do think that anything I’ve written is not correct or only partially correct, please leave me a comment. I’m always eager to learn something new and I will definitely enjoy and incorporate your support!
About
Support for running Linux on Chuwi Hi 10 Plus
Источник
Linux для chuwi hi10
Disclaimer: I got this device from the Manufacturer to test Linux on it. The below findings are my own and express my own opinion.
Specs and short review:
- Intel Atom x5-Z8350 CPU (4×1,92 GHz)
- Intel Integrated GPU
- 1920×1200 10.1″ IPS Screen
- 4GB RAM
- 64GB Internal Storage
- 1 x USB C
- 1 x USB Micro B
- 1 x Mini HDMI
- Bluetooth 4.2
- 2.4GHz WiFi
- Rotation Sensor
- Front and Back Camera
- Mico SD Card slot up to 400GB (Website claims 64GB but I sucessfully tested it with an 128GB Card that uses the SDXC Standard)
- Headphone Jack
- Stereo Speakers
- Keyboard Dock Support
- Touchpen support
The Chuwi Hi10 Air is a compact 10.1″ Tablet running a Windows 10. It has a sturdy Aluminium Body and the overall build quality is astonishing.
The speakers are surpisingly good for a tablet in that price segment. Paired with Bluetooth, a headphone jack and the 1920×1200 WUXGA display it’s perfect for all kind of Media Playback. The battery is powerful enough to easily survive a few Movies. The optional detachable keyboard is a welcome addition for when you need to write some text.
The keyboard is nice to type on, but I had cases where it would send keys out of nowhere. I can’t guarantee that’s not caused by the few drops of water I accidentally spilled on the connection to the tablet at some point. I’m not a big fan of the trackpad, mainly because it’s way to small to be usable for me but that might be because I am used to the trackpad on my 15″ MacBook Pro.
The Touchpen is very accurate thanks to the digitizer, however the touchscreen does not send different signals for Pen and Finger to the System. That means trying to take notes while resting your hand on the screen doesn’t really work.
Sadly, the full Windows 10 install user experience is really impacted by the entry level Intel Atom Z8350. It’s just not powerful enough to accomplish any advanced tasks.
However, Chuwi sent me the device to bring linux to it, so that’s what I did. This allows us to use lighter Window Managers and therefore more resources for actual tasks, resulting in a better performance.
What follows is a guide on how to setup on how to install Arch Linux on your Chuwi Hi10 Air.
First of all you need to install Linux on the tablet. That means you will erase your internal Windows installation, so make sure to either do a backup of it, or at least make yourself familiar with how to reinstall Windows in case it’s needed.
Please note that you can NOT install Linux on an SDCard because the BIOS can not boot from the SDCard.
Next up, it’s time to choose your Linux distro. I recommend anything that is based on Arch Linux and that uses either LightDM or lxdm, because that is what my guide will be using to setup certain features. Of cause you’re free to choosewhatever you want.
That means you could for example use Antergos, an ArchLinux based distro that includes Desktop managers (for Antergos I recommend XFCE), or go the hard way and install ArchLinux from scratch and use lxdm with LXQt. LXQt proved to me to be the best lightweight and yet High-DPI friendly Desktop Environment, so that’s what I used.
I trust you will be able to find the guides on how to install either with a quick Google search, so I will not go much further into detail here. To get into the boot menu, you need to press F7.
After your installation is done most things are already working.
Fixing Remaining Issues
Out of the box, there are a few issues and things that do not work because they are missing drivers or similar.
We’re getting started with the most important which is rotation.
As you’ll need to enter a couple commands to get automatic rotation working, start off with manually rotating the screen by opening a terminal and run the command xrandr -o left Note: xrandr is part of xorg-xrandr, and you will need that package for autoration to work.
There are a couple solution on how to rotate the screen out there, however I decided to go for the one with least overhead that looked the cleanest to me.
First of all, compile the 2in1screen binary. The sourcecode can be found in this Repository. Download, compile it and push it to /usr/local/bin.
Note: Make sure to install xorg-xrandr and xorg-xinput for this tool to work.
Now configure the Desktop Manager to start it after login.
LXDE: add /usr/local/bin/2in1screen & to /etc/lxdm/PostLogin
LightDM: Place the screenrotate.sh in /etc/lightdm/screenrotate.sh and set display-setup-script in /etc/lightdm/lightdm.conf to display-setup-script /etc/lightdm/screenrotate.sh
Reboot and make sure everything works as desired.
The Hi10 Airs Silead touchscreen requires drivers that are not bundled with a Linux install. You can download them here: https://github.com/onitake/gsl-firmware/tree/master/firmware/linux See the Readme on how to install them.
These drivers get loaded by the Linux kernel. I submitted a commit to add support for the Hi10 Air to the Linux Kernel and it has been approved. The commit is merged in the 5.1 (and newer) Kernel. That means you need to update your kernel for a proper touch support.
If you previously used my Kernel you can go back to the official kernel by running:
Now reboot and enjoy your touchscreen.
If your Audio isn’t working, make sure to update the alsa-lib to Version 1.1.7 or above. On Arch that package is in the stable repos so a sudo pacman -Syu will be enough.
Now, you probably already noticed, everything is a bit small to use your Fingers.
As a browser I recommend Google Chrome as that has a great touchscreen UI already.
For File browsing and reading I suggest using nautilus and evince because of their touch friendlyness.
For the whole system, there is a few things you can improve: First of all, increase the general DPI. You can do so by adding Xft.dpi: 150 to
/.Xresources . If the file doesn’t exist, create it.
Next up a few additional tweaks for LXQt: First of all increase the Panel bar Rightclick on the Panel and Press «Configure Panel». Then set the Size to 50px and the Icon Size to 30px.
Next up, Go to the Menu -> Preferences -> LXQt settings -> Appearance -> Font and set the DPI to 96 and finally go to Menu -> Preferences -> LXQt settings -> OpenBox Settings -> Font and increase the individual fonts to get a window title bar to drag/drop as well as hit the navigation with the finger. I set mine to Cantarell 16 and Cantarell 14.
Another Handy feature I found myself in need of was an onscreen keyboard. For that I installed OnBoard, and found a very neat feature here: https://bugs.launchpad.net/onboard/+bug/1232107
You can map a button to open/close the keyboard. I set mine to Super L, which equals the left Windows button and the touch button on the tablet itself.
In the LXQt Settings Menu you can configure Shortcut Keys. Create or edit the existing shortcut and either map the following DBus Call.
DBus Call: Service: org.onboard.Onboard Path: /org/onboard/Onboard/Keyboard Interface: org.onboard.Onboard.Keyboard Method: ToggleVisible
If your Desktop environment doesn’t support DBus calls, use the following command:
Источник
Мой дневник
Linux for Chuwi Hi10
UPD 01.12.2017: Вопрос практически решен. Установил свежую Fedora. Ядро понимает почти все железо, умеет уходить в standby и главное возвращаться из него ). Debian с ядром 4.9 не подошел. Можно наверное ядро заменить, но на шапке все хорошо подобрано. Тачскрин пока не использую, звук и видео на hdmi выводится (правда hdmi иногда теряет).
Продолжаю воевать в кривым железом Chuwi Hi10.
Цель – получить приличную рабочую лошадку.
Вначале было… UEFI. Первое, что было сделано, это ужимание штатного раздела windows, создание раздела для linux, установка туда Debian Jessie (впрочем, можно и другие варианты), настройка EFI и GRUB. Если будет много каментов – создам отдельную страничку.
До выхода ядра 4.8 драйвер i915 выдавал массу ошибок. Но теперь ситуация изменилась. Однако, оставалась большая проблема с HDMI – в линуксе он вроде бы совсем не работал, под штатным windows – срабатывал только если снести драйвер и дать его снова поставить (!)
Итак, для начала, была решена проблема с wifi: в ядро добавлен модуль https://github.com/hadess/rtl8723bs Тонкости:
- в bios установлено south bridge LSS&… SDIO control ->PCI
- в ядре патч: /net/wireless/Kconfig -> config WIRELESS_EXT – bool + def_bool y
- патчи от модуля на ядро 4.8 не ставятся и не нужны, нужен только патч laszlo из ветки https://github.com/hadess/rtl8723bs/issues/76 (https://github.com/hadess/rtl8723bs/files/379444/0001-My-changes-for-4.7.0-rc7-for-Baytrail-T.patch.txt
После этого wifi работает отлично, лагов нет. К сведению, существует другой драйвер wifi, но на новых ядрах он не собирается (https://github.com/anthonywong/rtl8723bs)
Важно: я запустил свое ядро на github! https://github.com/sae/linux/tree/hi10
На данный момент работает:
- wifi
- hdmi audio
- battery status (через скрипт axpd)
- тачскрин – не полностью, драйвер есть но отображение “зеркальное”
А вообще обновления теперь будут в файле README.sae
Большая проблема – с шиной i2c. Без семафора шина не работает, семафор стандартный тоже. Проблема случайно решилась в одной ветке дискуссий: — a/drivers/i2c/busses/i2c-designware-baytrail.c
+++ b/drivers/i2c/busses/i2c-designware-baytrail.c
@@ -22,7 +22,7 @@
#include “i2c-designware-core.h”
#define SEMAPHORE_TIMEOUT 100
-#define PUNIT_SEMAPHORE 0x7
+#define PUNIT_SEMAPHORE 0x10E //0x7
#define PUNIT_SEMAPHORE_BIT BIT(0)
#define PUNIT_SEMAPHORE_ACQUIRE BIT(1)
После этого патча устройства стали доступны!
Дальше я занялся HDMI. Глюки пока не полностью выловлены, но прогресс есть. Оказалось, выход hdmi заведен на порт HDMI-2, хотя при выключенном телевизоре edid можно получить с порта gmbus panel. Самое веселое что при включении телевизора edid пропадает. Поэтому:
xrandr –newmode “1920x1080_60.00” 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
xrandr –output HDMI-2 –addmode HDMI-2 1920x1080_60.00
xrandr –output HDMI-2 –mode 1920x1080_60.00
Тачскрин: у меня в ACPI устройство видно как CHPN0001, частично походит драйвер chipone_ts (https://github.com/Dax89/chuwi-dev), но выдает координаты перевернутые относительно центра экрана. Поскольку код открытый, буду адаптировать в ближайшее время.
*Звук, в сети много патчей, нужно пробовать, в том числе вывод на hdmi
+Питание и батарея – используем AXP288 и его множество функций
Источник