You are not logged in.

#126 2017-01-30 05:54:46

gmelchett
Member
Registered: 2016-08-18
Posts: 75

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

UsedCake wrote:

Great, things are starting to work for me too.

Summing it up so others having trouble can get a head start:

Works: Wifi, Sound (Speakers only), GPU Accel, Touchscreen, Touchpad
Doesn't: Headphones sound, Bluetooth, Backlight adjustment, also Suspend breaks Wifi and Touchscreen

With my one-liner, firmware binary blob and:

btattach -B /dev/ttyS1 -P bcm

I atleast can scan for bluetooth devices. How far do you come?

Regarding backlight adjustments, you have to blacklist i915 and manually modprobe once you have logged in. Or else you'll end up with acpi_videoX in /sys/class/backlight instead of /sys/class/intel_backlight

There are patches out for heatphone jack detected that works, and also some new sound patches. I've not yet tested the sound patches.

Offline

#127 2017-02-01 05:47:52

gmelchett
Member
Registered: 2016-08-18
Posts: 75

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

I've tested the latest sound patches, but the noise in the headphones is still there. However, I've heard that work is ongoing regarding to fix it.

I've not made a new patch series with the jack detect, since it feels rather pointless when you'll just hear noise in your headphones.
Also, I've not looked into why my touchpad driver sometimes fails to work sometimes, I want to be able to build the kernel on my T100HAN, but I get
weird errors, like "unknown file type: built-ins.o" and "str X <Y when linking vmlinux". First I though I ran out of ram, but no sign of that in the kernel log.
Actually, I see no kernel errors at all, so it could be anything. Most times, I can build from scratch once, but second time fails.

Anyone successfully building the kernel on the T100HAN?

Offline

#128 2017-02-01 16:28:36

jmiahman
Member
Registered: 2016-10-20
Posts: 25

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

I stopped building on the T100 just for speed purposes. I have a 8 Core with 16G of Ram that builds those 3,000 modules a lot faster.

RC6 is working fine with your patchset btw..

Last edited by jmiahman (2017-02-03 22:11:01)

Offline

#129 2017-02-20 23:31:55

muhviehstarr
Member
Registered: 2016-11-12
Posts: 11

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

please try the new version of linux-baytrail48/49 from the our and give me some feedback.

Offline

#130 2017-02-26 13:11:14

gmelchett
Member
Registered: 2016-08-18
Posts: 75

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

Put these patches: http://lithops.se/patches-4.10-audio.tar.bz2 upon

git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git, branch: topic/asus-e100h-v4.10

and you'll get decent headphone audio quality, plus headphone jack insert/removal detection.
However, you loose the touchscreen.

A word of warning, this kernel git is experimental.

Offline

#131 2017-02-27 19:32:12

gmelchett
Member
Registered: 2016-08-18
Posts: 75

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git, branch: topic/soc-button-array-cherrytrail

Includes patches to get the power, volume up/down buttons to work.

Headphone audio quality isn't decent, it is just on a usable level. Still noise and start-stop click-pop sounds.

Offline

#132 2017-03-06 19:19:13

muhviehstarr
Member
Registered: 2016-11-12
Posts: 11

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

thank you gmelchett. I have added these patches into linux-baytrail49

Offline

#133 2017-03-08 02:50:41

jmiahman
Member
Registered: 2016-10-20
Posts: 25

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

Currently I am running 4.11.0-rc1, with 3 patches

Patch0001: 0001-hid-input-Add-Asus-T100-T100HA-specific-keys.patch
Patch0002: 0002-drm-i915-Workaround-VLV-CHV-DSI-scanline-counter-har.patch
Patch0003: 0003-input-ASUS-T100-touchpad-multitouch-driver.patch

and I have headphones working out of the box

Offline

#134 2017-03-08 12:29:44

muhviehstarr
Member
Registered: 2016-11-12
Posts: 11

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

where can i get these patches?

Offline

#135 2017-03-09 06:53:28

gmelchett
Member
Registered: 2016-08-18
Posts: 75

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

jmiahman wrote:

Currently I am running 4.11.0-rc1, with 3 patches

Patch0001: 0001-hid-input-Add-Asus-T100-T100HA-specific-keys.patch
Patch0002: 0002-drm-i915-Workaround-VLV-CHV-DSI-scanline-counter-har.patch
Patch0003: 0003-input-ASUS-T100-touchpad-multitouch-driver.patch

I'm preparing a patch series with headset jack detect and volume up/down and power buttons supported.

A good thing is that you don't need the modified dsdt any longer! (Seems to be fixed in 4.10-rcX)

jmiahman wrote:

and I have headphones working out of the box

Yes, but I have load start/stop click/plop sounds and lot of background noise. What about you?
It's ok when listen to like heavy metal, but with classical music I find the noise is unbearable.

Offline

#136 2017-03-28 20:12:20

merauder75
Member
Registered: 2017-03-28
Posts: 3

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

I'd also like to know where to get those patches, running prebuilt (from the main repos) 4.10 and I don't have WiFi, touchscreen, or sound working. It'd be even better if there was a prebuilt image so I can avoid having to somehow get the module config from my T100HA to my build machine.

Offline

#137 2017-03-29 06:47:36

gmelchett
Member
Registered: 2016-08-18
Posts: 75

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

My patch set for 4.11-rc3 contains about 40 patches: http://lithops.se/patches-4.11-rc3.tar.bz2

Most noticeable changes:
- No more complains from ACPI about duplicated tables.
- Volume up/down and the power button on the left side of the screen works.
- Headphone jack inserted/removed works.
- Suspend/resume works
- Lid open/close works (enters suspend/ leaves resume)
- No modified dsdt table needed
- No spurious IRQ #9 when resuming.
- rmmod asustouch no longer oops (temporary hack at the moment)

Known issues:
- Suspend/resume still complains about the resource P33X. (Crystal Cove related I guess)
- You have to either be connected to an access point or rmmod brcmfmac before suspend.
   Or else you'll get spammed by mmc driver errors at resume.
- You have to blacklist i915 and modprobe it late/manually to get backlight work.
- You have to blacklist usbhid to assure that asustouch gets probed first and get the touchpad.
   * WARNING * WARNING * make sure you modprobe usbhid in a start-up script or you won't have a keyboard!
- Headphone audio is pretty noisy.
- According to /sys/kernel/debug/pmc_atom/sleep_state no deeper sleep states are reached.

I've installed rc-local from AUR and my /etc/rc.local:
--
#!/bin/sh
btattach -B /dev/ttyS1 -P bcm &
modprobe usbhid
(sleep 2; modprobe i915) &

echo '0' > /proc/sys/kernel/nmi_watchdog
echo '1500' > /proc/sys/vm/dirty_writeback_centisecs
echo 'auto' > /sys/bus/pci/devices/0000:00:14.0/power/control
echo 'auto' > /sys/bus/pci/devices/0000:00:00.0/power/control
echo 'auto' > /sys/bus/pci/devices/0000:00:03.0/power/control
echo 'auto' > /sys/bus/pci/devices/0000:00:1a.0/power/control
echo 'auto' > /sys/bus/pci/devices/0000:00:0b.0/power/control
echo 'auto' > /sys/bus/pci/devices/0000:00:02.0/power/control
echo 'auto' > /sys/bus/pci/devices/0000:00:0a.0/power/control
echo 'auto' > /sys/bus/pci/devices/0000:00:1f.0/power/control

systemctl restart acpid
--

Any my /etc/modprobe.d/blacklist.conf
--
blacklist i915
blacklist usbhid
--

Offline

#138 2017-03-29 18:23:43

gmelchett
Member
Registered: 2016-08-18
Posts: 75

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

The patches for rc3 applies without issues on rc4. But I've not finished compiling rc4 yet.

Offline

#139 2017-04-03 21:12:21

merauder75
Member
Registered: 2017-03-28
Posts: 3

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

Okay, I'll try building 4.11-rc5 and see if it works. Any particular config changes needed for it to build properly for Cherry Trail atom CPUs? My build host machine is a Skylake Ultrabook.

Offline

#140 2017-04-03 23:32:12

merauder75
Member
Registered: 2017-03-28
Posts: 3

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

gmelchett wrote:

The patches for rc3 applies without issues on rc4. But I've not finished compiling rc4 yet.

I was able to apply them to rc5, it did build. Installed the kernel on the T100HA, and it does seem to work a bit better, touchpad works now, still no wifi, sound, or touchscreen.

Offline

#141 2017-04-04 04:28:16

gmelchett
Member
Registered: 2016-08-18
Posts: 75

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

merauder75 wrote:
gmelchett wrote:

The patches for rc3 applies without issues on rc4. But I've not finished compiling rc4 yet.

I was able to apply them to rc5, it did build. Installed the kernel on the T100HA, and it does seem to work a bit better, touchpad works now, still no wifi, sound, or touchscreen.

Please read through the six pages of posts, in them you'll find instructions on how to get wlan, audio and the touchscreen to work.
It depends on what window manager/desktop enviroment that you use, if the touchscreen will be usable.

Offline

#142 2017-08-17 14:39:02

Volker
Member
Registered: 2017-08-17
Posts: 1

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

Hi,

I have two T100HA tablets. One was bought several month ago, one was bought just last week. For whatever reason the touchscreen refused to work with the newer one although it was the same Linux image (kernel 4.9 with custom ACPI table). After upgrading to kernel 4.12 and applying several of gmelchett's patches, the behavior was the same on both tablets. Unfortunately both did not have a working touch screen. Interestingly the i2c_hid driver created an input device but this device refused any open call with EINVAL. When I unloaded the i2c_hid module and reloaded it, the /dev/input/eventX device was possible to be opened, but no events could be received. After struggling a lot with the different kernel config options the solution seemed to be to disable any PMIC config (CONFIG_PMIC_OPREGION) in the kernel. Not sure what I miss when deactivating those config options. But now the power button, volume buttons and touchscreen works without problems. I haven't tested sound or the touchpad so far because I don't need them.

To cut a long story short:
Here are the patches (with very small adjustments) I used for kernel 4.12.7

https://filebin.ca/3XCTVS59OndU/4.12.7g … -r1.tar.gz

Offline

#143 2018-09-23 10:08:40

gmelchett
Member
Registered: 2016-08-18
Posts: 75

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

After having my T100HA running Windows for about a year, I recently installed Arch again.
This time most things are much better! With Arch 2018.08.01, I had to do the following things:

Wifi

sudo cp /sys/firmware/efi/efivars/nvram-74b00bd9-805a-4d61-b51f-43268123d113 /lib/firmware/brcm/brcmfmac43340-sdio.txt

Audio

git clone git://git.alsa-project.org/alsa-lib.git
sudo mv /usr/share/alsa/ucm /usr/share/alsa/ucm-orig
cd alsa-lib
sudo cp -r src/conf/ucm/ /usr/share/alsa/

This step won't be need when next alsa lib version is released. The required patches are merged.

Text mode is in landscape orientation, while X needs to be rotated.

Suspend/Hibernate
Currently there are no S0ix residency support. Various open bugs in bugzilla. The result is that instead of 100-200h in suspend to mem, you'll get like 40h or so.
No idea how much this affects power consumption during use.

The wifi-driver,

brcmfmac

wont work after suspend/hibernate if not attached to a wifi access point before suspend/hiberate.
It works fine if you rmmod it before suspend, and modprobe it afterwards.

The touch screen doesn't work after resume, unless you rmmod

hid-multitouch

and

hid-generic

and then modprobe them at resume.

Suspend to disk works fine, but the eMMC memory is quite slow, so resume takes about as long as a fresh boot with restore session including starting firefox.

Unknown status
Cameras and bluetooth.

Offline

#144 2020-01-23 18:02:23

feixm
Member
Registered: 2019-10-29
Posts: 2

Re: Guide: Installing Arch on Asus Transformer T100HA (T100HAN)

Hi all, I know this topic is quite old, but still very helpful. I just want to share my current experience with how things improved over time. So:

  • Boot's OK, with the necessary 32bit EFI bootloader.

  • Keyboard, USB hub works great

  • Touchpad works good, but more three fingers gestures, like middle mouse button click, not recognized.

  • Touchscreen works perfectly, including fluent changes of brightness setting.

  • Bluetooth works great. I just needed to download the proprietary bluetooth firmware to /lib/firmware/

  • WiFi is working perfectly.

  • Sound works over HDMI or Bluetooth trough Alza or Alza with Pulseaudio. No sound trough headphones or speakers for now. This will likely be solved soon with guys from Alza project, as the driver properly recognize the chipset, but the UCM profile is likely missing.

  • Detaching and reattaching the keyboard works perfectly (tablet mode). Screen rotation and touchpad coordinates need to be changed trough shell or script, as the sensor for orientation is not working at all.

  • Hibernation to disk/swap does not work, device will halt during resume and needs to be rebooted. Suspend is working perfectly.

Great device.

Cheers,

Offline

Board footer

Powered by FluxBB