You are not logged in.

#101 2016-12-29 20:36:15

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

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

gmelchett wrote:

You're welcome. I've not used windows for months on my T100HAN. I find it very stable (hours of use every day) and battery performance is alright.

I doubt the mic work with those alsa state files that pavan has provided. Maybe you will be more lucky with the UCM files than I've been, and get things working that way.

I am going on 5 hours right now and still over 50%, that's pretty good for me. The first thing I did when I got this this is installed Linux over Windows. So I have been on in since the beginning of october. I bought this guy to replace a Acer Switch 10 that I fried messing with.. thus my reluctance to fry this one. The downside was this had much newer hardware then my Switch 10 (which was BayTrail) and though the sound didn't work on the Switch the Graphics did and the touchscreen. Now I am pretty much at a trade off with this guy with video working, the sound works on the t100HA but not the touchscreen. So I am happy I am no longer at a loss when it comes to functionality as I was a bit worried this may of ended up being a bust purchase. I like the hardware though, just not the support for it thus far. It is nice however to see Intel employees pitching in, even if Intel doesn't seem to be 100% intentionally behind support in Linux for this hardware.

I tried all the input switches and volume but to no avail with the hp state file. I thought there might be more that has to be involved with getting the mic to work. Hopefully we see something soon.. Thanks again.

Offline

#102 2016-12-30 12:33:10

arcangeli
Member
Registered: 2010-06-15
Posts: 21

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

Hi all,
I'm using theses patches with Kali (and maybe arch soon).
Sound on speakers, i915, touchscreen and touchpad work. But there's no backlight control. With light, i can change backlight value (but not real backlight).

Do i need the DSTD fix anymore or is it resolved?

Thanks for your work.

Offline

#103 2016-12-30 13:35:09

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

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

arcangeli wrote:

Hi all,
I'm using theses patches with Kali (and maybe arch soon).
Sound on speakers, i915, touchscreen and touchpad work. But there's no backlight control. With light, i can change backlight value (but not real backlight).

You have to blacklist i915 and manually modprobe it later. At least I have to do that to get backlight settings to work.

arcangeli wrote:

Do i need the DSTD fix anymore or is it resolved?

Thanks for your work.

You need the DSDT fix if you want wifi and the sdcard reader. My kernel bug report was rejected as "bios bug, won't fix."

Offline

#104 2016-12-30 17:09:41

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

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

arcangeli wrote:

Hi all,
Sound on speakers, i915, touchscreen and touchpad work. But there's no backlight control. With light, i can change backlight value (but not real backlight).

Do you have the t100ha? If so and you have the touchscreen working I would be interested to know what driver/firmware it's running and if you took any extra steps for that to happen.. thanks

Offline

#105 2016-12-30 17:31:01

arcangeli
Member
Registered: 2010-06-15
Posts: 21

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

Yes, it's the T100HA. For the touchscreen, it not really useable as it always click i use it only for selecting some text. I've just followed this topic.

@gmelchett: i've got "[drm:pwm_setup_backlight [i915]] *ERROR* Failed to own the pwm chip" when i manually load i915. And no backlight (with light and xbacklight).
I'll try to see if there are difference from our config files (mine is a 4.8 from kali updated to 4.10-rc1 with your patches).
Bluetooth work and the sdcard reader too.
Thanks very much for all this work.

Offline

#106 2016-12-30 18:17:06

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

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

jmiahman wrote:
arcangeli wrote:

Hi all,
Sound on speakers, i915, touchscreen and touchpad work. But there's no backlight control. With light, i can change backlight value (but not real backlight).

Do you have the t100ha? If so and you have the touchscreen working I would be interested to know what driver/firmware it's running and if you took any extra steps for that to happen.. thanks

The touchscreen is working as it should. (Posted xorg settings for it yesterday or so) You just have to install something that understands gestures.

Offline

#107 2016-12-30 18:26:27

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

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

arcangeli wrote:

Yes, it's the T100HA. For the touchscreen, it not really useable as it always click i use it only for selecting some text. I've just followed this topic.

@gmelchett: i've got "[drm:pwm_setup_backlight [i915]] *ERROR* Failed to own the pwm chip" when i manually load i915. And no backlight (with light and xbacklight).
I'll try to see if there are difference from our config files (mine is a 4.8 from kali updated to 4.10-rc1 with your patches).
Bluetooth work and the sdcard reader too.
Thanks very much for all this work.

I have a weak memory that I've had this error myself. Something that had to be compiled not as a module. CONFIG_PINCTRL_CHERRYVIEW=y maybe?
might be CRYSTAL_COVE-something.

Offline

#108 2016-12-30 18:43:45

arcangeli
Member
Registered: 2010-06-15
Posts: 21

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

I've got CONFIG_PINCTRL_CHERRYVIEW=y and CONFIG_GPIO_CRYSTAL_COVE=y.
I'm in the process of compiling with your config...

Offline

#109 2016-12-31 19:02:34

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

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

I've managed to break out the touchpad multitouch hack into a separate driver. Now it is just the easy parts left - I guess. Hopefully in a few days I'll have a proper driver ready, with working suspend/resume.

Happy new year guys!

Offline

#110 2017-01-01 17:15:43

arcangeli
Member
Registered: 2010-06-15
Posts: 21

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

Happy new year.

I've made a new config for my kernel. Now backlight work perfectly.

Great work man. Thanks.

Offline

#111 2017-01-02 18:29:42

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

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

New version of my patch stack. The multitouch hack is now replaced with a proper driver, asustouch. It should work on T100TA as well, but I have not tested.
http://lithops.se/patches-on-4.10rc2.tar.bz2

Please test the driver, and tell me the results! I will probably do some minor cosmetic changes before sending it to mainline kernel for review, so
any feedback on the patch is welcome.

On the bad side, suspend/resume is still not working properly - lots of error messages on resume, but ob stickle is removed. And yes, the touchpad works after resume. (Last time I tested at least :-)

Offline

#112 2017-01-03 13:34:03

arcangeli
Member
Registered: 2010-06-15
Posts: 21

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

Not played with suspend/resume for now.

But i need to manually load asustouch module BEFORE starting x. If not, i can't use the touchpad until i reboot (don't work if i quit x, load asustouch and restart x).
Not a big deal as i do not run any dm. But for those that use dm, you need to load it at boot.
The touchpad work as before, with a tap for click but without two finger scrolling. I'll try to see if i can configure x for multitouch use. That was automatic with previous patch set.

Offline

#113 2017-01-03 18:03:51

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

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

Will creating a udev rule maybe load the driver before Xorg?

ie. https://wiki.archlinux.org/index.php/udev

Offline

#114 2017-01-03 18:18:21

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

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

arcangeli wrote:

Not played with suspend/resume for now.

But i need to manually load asustouch module BEFORE starting x. If not, i can't use the touchpad until i reboot (don't work if i quit x, load asustouch and restart x).

Thanks for testing! Did you run depmod after installing the newly built modules? For me, asustouch loads automatically.

arcangeli wrote:

Not a big deal as i do not run any dm. But for those that use dm, you need to load it at boot.
The touchpad work as before, with a tap for click but without two finger scrolling.

Multitouch is the sole purpose of this driver :-) Without it, you get hid-generic, which is single touch.

arcangeli wrote:

I'll try to see if i can configure x for multitouch use. That was automatic with previous patch set.

Sounds like something went wrong with your build. But here is my xorg conf for the touchpad:
--
Section "InputClass"
        Identifier "touchpad"
        Driver "libinput"
        MatchIsTouchpad "on"
        Option "NaturalScrolling" "1"
        Option "ScrollMethod" "twofinger"
        Option "HorizontalScrolling" "1"
        Option "SendEventsMode" "disabled-on-external-mouse"
        Option "Tapping" "1"
        Option "TappingButtonMap" "lrm"
        Option "TappingDrag" "1"
        Option "TappingDragLock" "0"
        Option "DisableWhileTyping" "1"
EndSection
--

Offline

#115 2017-01-03 18:19:37

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

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

jmiahman wrote:

Will creating a udev rule maybe load the driver before Xorg?

ie. https://wiki.archlinux.org/index.php/udev

No such changes should be needed. The driver uses the input framework, and everything should work as before.

Offline

#116 2017-01-03 18:28:52

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

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

Regarding sound, the audio heard with lot of noise in the asound.state-hp for headphones is most likely analog overhearing in the analog electronics since the state file mixes in input audio into the headphone audio. Without having the datasheet (didn't find the one for rt5640 either) I guess the setup looks like this:

music -> audio digital [unknown path]--> audio analog out ->[off by default] speaker
mic [off] -> analog audio in -> analog MIX with headphone
audio digital [another path] -> headphone analog -> headphone out.

(If it makes any sense :-)

Offline

#117 2017-01-04 07:52:03

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

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

Found someones misc wiki that finally explained the basic usecase of the undocumented alsaucm.

alsaucm -c chtrt5645 reset
alsaucm -c chtrt5645 set _verb HiFi set _disdev Headphones
alsaucm -c chtrt5645 set _verb HiFi set _disdev Speaker
alsaucm -c chtrt5645 set _verb HiFi set _enadev Headphones

for headphones. Just noise in headphones, while Speakers work.

Offline

#118 2017-01-06 11:38:22

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

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

Powertop suggests the following settings in order to optimize for power:
--
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
--
Suspend/resume apparently leaves something off (touchscreen - something else?) and that saves ~0.3 W. With backlight at 10, I get a power consumption of about ~1.7W, when doing some programming. That means over 15h in emacs without charging :-)
Web browsing is somewhere around 3W. Turning off the screen brings it down to 1W.
It will be very interesting to see the power figures once the different sleep states start to work. (See: /sys/kernel/debug/pmc_atom/sleep_state)

Offline

#119 2017-01-12 14:39:20

arcangeli
Member
Registered: 2010-06-15
Posts: 21

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

Tried your patches with rc3. suspend work but wifi does'nt work after resume. wlan0 is here but can't be configured (tried with networkmanager and wpa_supplicant_gui).
Is there some progress?

Offline

#120 2017-01-12 19:21:05

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

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

Thanks. My parental leave is now over and I'm back at work, so now I have currently not much time to try things out.

I removed "suspend on lid close" from systemd, added a keyboard shortcut to activate a screensaver that turns off the screen, instead of using normal suspend. Since the computer consumes around 1W (= battery last up to 30 h) with the screen off, for the time beeing it's an ok "suspend-substitute".

But wlan has been working fine for me after suspend/resume, but I got loads of sdhci errors. But I've not had the computer suspended for that long time. Just been trying it out.

Offline

#121 2017-01-19 18:15:59

UsedCake
Member
Registered: 2017-01-19
Posts: 2

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

Hello,

I've recently got a T100HA and installed Arch on it.  I tried compiling Linux 4.10rc1 with
gmelchett's patchset and config, hacking it into the linux-git PKGBUILD.  It fails to build
for me at `  LD      fs/built-in.o`.  Could someone give me a hint on how to get up to
speed, or has a makepkg-able tar.gz at hand?  That'd be awesome!

Cheers,
Cake

Offline

#122 2017-01-19 18:53:15

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

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

UsedCake wrote:

Hello,

I've recently got a T100HA and installed Arch on it.  I tried compiling Linux 4.10rc1 with
gmelchett's patchset and config, hacking it into the linux-git PKGBUILD.  It fails to build
for me at `  LD      fs/built-in.o`.  Could someone give me a hint on how to get up to
speed, or has a makepkg-able tar.gz at hand?  That'd be awesome!

Cheers,
Cake

I'm not using any PKGBUILD. I do:

make O=`pwd`/build # mkdir build first time and put .config there
make modules_install # I build usually on another machine, using INSTALL_MOD_PATH, and scp a them in a tarball
cp build/arch/x86/boot/bzImage /boot/bzImage-something
cd /lib/modules
depmod -a <4.10...something>
mkinitcpio -k /boot/bzImage-something -c /etc/mkinitcpio.conf -g /boot/initramfs-4.10-something
cd /boot/loader/entries
add a new entry.

Offline

#123 2017-01-19 18:55:49

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

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

I've noticed that like one time of 10-20, hid-generic takes the touchpad ahead of my hid-asus-touchpad driver. I'll be looking into it.

Offline

#124 2017-01-20 23:09:56

oggio88
Member
Registered: 2013-09-10
Posts: 4

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

I managed to persuade the wifi to work :-). I installed linux 4.10 rc4 from AUR with package linux-mainline (but this is probably not required, I did it because it fixes the black screen problem with GPU acceleration). Then I installed linux-firmware-git from AUR which contains /usr/lib/firmware/brcm/brcmfmac43340-sdio.bin which is the driver for the Broadcom 43241b1, then I followed these instructions https://wiki.debian.org/InstallingDebia … 100TA#WiFi which basically boil down to run

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

to copy the nvram file to the right location in firmware folder. Then I ran

modprobe -r brcmfmac && modprobe brcmfmac

and wlan0 magically appeared in ip link smile

P.S. just make sure you haven't installed broadcom-wl or broadcom-wl-dkms from the AUR because they blacklist module brcmfmac, in that case just remove them

Last edited by oggio88 (2017-01-20 23:13:21)

Offline

#125 2017-01-21 22:28:30

UsedCake
Member
Registered: 2017-01-19
Posts: 2

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

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

Kernel: Linux 4.10rc4 `linux-mainline` AUR package with latest patches by gmelchett (Patches apply just fine)

TL;DR:

For XOrg: Add kernel parameters `video=LVDS-1:d fbcon=rotate:3` (fbcon may not be needed), save snippet below at /etc/X11/xorg.conf.d/10-t100ha.conf
For sound: Save https://github.com/p-an/T100HA-DSDT/blo … .state-spk to `/var/lib/alsa/asound.state`. Maybe requires `alsa-firmware`.
For wifi: `cp /sys/firmware/efi/efivars/nvram-74b00bd9-805a-4d61-b51f-43268123d113 /usr/lib/firmware/brcm/brcmfmac43340-sdio.txt`, install `linux-firmware-git` from AUR (Maybe the non-git version would work too?). The file contains garbage bytes at the start, which I just removed. No idea if this is required.

# File pieces scavenged from this thread, thanks to the original posters whose links I can't find right now :)

Section "Device"
        Identifier "Intel Graphics"
        Driver "intel"
EndSection

Section "Screen"
        Identifier "Default Screen"
        Monitor "Main LCD"
        DefaultDepth 24
        SubSection "Display"
                Depth 24
                Modes "800x1280"
        EndSubSection
EndSection

Section "InputClass"
        Identifier "touchpad"
        Driver "libinput"
        MatchIsTouchpad "on"
        Option "NaturalScrolling" "1"
        Option "ScrollMethod" "twofinger"
        Option "HorizontalScrolling" "1"
        Option "SendEventsMode" "disabled-on-external-mouse"
        Option "Tapping" "1"
        Option "TappingButtonMap" "lrm"
        Option "TappingDrag" "1"
        Option "TappingDragLock" "0"
        Option "DisableWhileTyping" "1"
EndSection

Section "InputClass"
        Identifier "touchscreen"
        Driver "libinput"
        ##Option "Device" "/dev/input/event11"
        MatchIsTouchScreen "True"
        Option "NaturalScrolling" "1"
        Option "ScrollMethod" "twofinger"
        Option "HorizontalScrolling" "1"
        Option "RotationAngle" "270.0"
        Option "Tapping" "1"
        Option "TappingButtonMap" "lrm"
        Option "TappingDrag" "1"
        Option "TappingDragLock" "0"
        Option "DisableWhileTyping" "0"
EndSection

# Rotate touchscreen
Section "InputClass"
        Identifier "touchscreen"
        Driver "libinput"
        MatchIsTouchscreen "on"
        Option    "TransformationMatrix" "0 -1 1 1 0 0 0 0 1"
EndSection

Last edited by UsedCake (2017-01-21 22:30:54)

Offline

Board footer

Powered by FluxBB