Asus-E200HA-Linux-Post-Install-Script icon indicating copy to clipboard operation
Asus-E200HA-Linux-Post-Install-Script copied to clipboard

Sound not working on e200ha

Open kajetan-mazur opened this issue 7 years ago • 129 comments

Hi

I have just installed new ubuntu 17.04 then i have run script e200ha_with_sound.sa, but it didnt work. I see Your kernel but my button of sound is on mute in the right upper corner if i go to settings and give sound to louder it shows that is ok but the icon is still on mute, here are some jpg: image] image image

kajetan-mazur avatar Jun 28 '17 10:06 kajetan-mazur

More photos image

kajetan-mazur avatar Jun 28 '17 10:06 kajetan-mazur

I've tried reproducing your issue. Interestingly enough rebooting broke then fixed it again... you might want to try that.

Also for some reason it looks like it works better when I have LXDE (Lubuntu-desktop package) as my current desktop environment... I wish I could be of more use but I'm not sure what the exact issue is. Most of the time it works perfectly fine.

Grippy98 avatar Jun 29 '17 00:06 Grippy98

@Grippentech so i will try lubuntu today with Your e200hawithsound and will write if that helped :)

kajetan-mazur avatar Jun 29 '17 05:06 kajetan-mazur

Cool! Hope it works!

Grippy98 avatar Jun 29 '17 05:06 Grippy98

@Grippentech on lubuntu there is sound,but i cant make louder. I go into volume button and it moves but id does not make sound lower/higher :(

kajetan-mazur avatar Jun 29 '17 10:06 kajetan-mazur

After fixing few problems everything works fine but lubuntu should takie 3gb and with all it takes now 10gb of disk space. Is it because the script? Can i clean something?or check what is installed and what can i remove?

kajetan-mazur avatar Jun 30 '17 07:06 kajetan-mazur

@kajetan-mazur Nope you can't clear anything. The kernel has an massive size. He will reduce the size in the future. See also #11

gravemalte avatar Jun 30 '17 09:06 gravemalte

@Daylien thank U very much for reponse. What languages would i have to know to make such magic as You guys have done?where to start?

kajetan-mazur avatar Jun 30 '17 09:06 kajetan-mazur

@kajetan-mazur As far as I know pretty much C and Shell.

gravemalte avatar Jun 30 '17 13:06 gravemalte

Yup sorry to be unresponsive guys. I'm on vacation in Europe at the moment and can't test anything. I could try to do a light kernel build at some point and maybe try to test but won't be able to test until mid August... sorry to say. If someone else wants to test then that could work too. And yes this is basically all a shell script.

If you want I can provide instructions on how to compile it.

Grippy98 avatar Jul 05 '17 20:07 Grippy98

The reason it's so big is that the version of the kernel built rn is a very "recommended" version which has modules enabled for a lot of possible devices. This could be reduced significantly by running a minimum version of the kernel which only supports the modules required by the Laptop, but that would decrease the options of external peripherals.

This has been on my plate for a while and I must admit I haven't put as much of an effort as I should have. The couple attempts I did do resulted in the device not booting but that's my fault.

Additionally I believe I had some debug portions of the kernel enabled which also take up a big portion.

Grippy98 avatar Jul 05 '17 20:07 Grippy98

@grippentech Take you're time. And I think here are more than one person that would test you're awesome work. Btw have fun in Europe ! :D

gravemalte avatar Jul 05 '17 20:07 gravemalte

Thanks! I'll try my best to get some free time to do a build (and a write up on how to do it) as soon as I can, getting an internet connection stable and faster than 2mb/s to clone the linux kernel tree is going to be the biggest issue haha, I'll keep you guys posted, thanks for the help!

Grippy98 avatar Jul 05 '17 21:07 Grippy98

Hey, where in Europe is so weak connection? im in Poland and have 80mb/s :)

On Jul 5, 2017 11:18 PM, "Andrei Aldea" [email protected] wrote:

Thanks! I'll try my best to get some free time to do a build (and a write up on how to do it) as soon as I can, getting an internet connection stable and faster than 2mb/s to clone the linux kernel tree is going to be the biggest issue haha, I'll keep you guys posted, thanks for the help!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Grippentech/Asus-E200HA-Linux-Post-Install-Script/issues/16#issuecomment-313229926, or mute the thread https://github.com/notifications/unsubscribe-auth/AViD7buaU_60dRKYMEL4H_YGrztWOCRvks5sK_26gaJpZM4OHx_J .

kajetan-mazur avatar Jul 06 '17 04:07 kajetan-mazur

Switzerland st the moment and hotel wifi... I'll be in Austria and later Romania in 10 days or so I can enjoy some 300mb/s ;)

Grippy98 avatar Jul 06 '17 07:07 Grippy98

Ok guys I took a break from vacationing and did a minified version of the kernel, 122MB before install.

If you want to clone on a fresh system, run this version of the script (new dev branch): https://github.com/Grippentech/Asus-E200HA-Linux-Post-Install-Script/tree/minimalDev

Otherwise, just install (sudo dpkg -i *.deb) this: https://github.com/Grippentech/Asus-E200HA-Linux-Post-Install-Script/releases/download/4.12RC1_min/kernel.zip

Again, this is completely untested but it should work. If you want to test then I'd really appreciate it. Let me know how it goes!

Grippy98 avatar Jul 06 '17 18:07 Grippy98

@Grippentech Thanks for the quick update !

So installed on a brand new Linux Mint 18.2 Cinnamoon.

  • [x] Works
  • [ ] Doesn't work

  • [x] Keyboard

  • [x] Bluetooth (Doesn't tried a connection only the driver)

  • [x] The F command keys

  • [x] Much better Storage now 5,8 GB free with an brand new installation !

  • [x] Sound driver

  • [ ] Touchpad driver

  • [ ] USB ports

  • Card reader (Atm I have no SD card, so i cannot test it)

Hope i could help you !

gravemalte avatar Jul 06 '17 21:07 gravemalte

Awesome! Thanks for the quick test as well. Îll try to get sound and the rest in order as soon as possible. Can you post a dmesg output when you get the chance to see what kernel messages are being thrown out?

Thanks!

On Jul 6, 2017 11:02 PM, "Daylien" [email protected] wrote:

@Grippentech https://github.com/grippentech Thanks for the quick update !

So installed on a brand new Linux Mint 18.2 Cinnamoon.

Keyboard

Bluetooth (Doesn't tried a connection only the driver)

The F command keys

Much better Storage now 5,8 GB free with an brand new installation !

Sound driver doesn't detect

Mouse driver doesn't work

Card reader (Atm I have no SD card)

Hope i could help you !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Grippentech/Asus-E200HA-Linux-Post-Install-Script/issues/16#issuecomment-313518473, or mute the thread https://github.com/notifications/unsubscribe-auth/AG0pIkQwh0VwGBIVD4sYhXL4f9oDCVxtks5sLUtngaJpZM4OHx_J .

Grippy98 avatar Jul 06 '17 21:07 Grippy98

Also just to clarify, by Mouse do you mean touchpad or external USB mouse?

On Jul 6, 2017 11:02 PM, "Daylien" [email protected] wrote:

@Grippentech https://github.com/grippentech Thanks for the quick update !

So installed on a brand new Linux Mint 18.2 Cinnamoon.

Keyboard

Bluetooth (Doesn't tried a connection only the driver)

The F command keys

Much better Storage now 5,8 GB free with an brand new installation !

Sound driver doesn't detect

Mouse driver doesn't work

Card reader (Atm I have no SD card)

Hope i could help you !

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Grippentech/Asus-E200HA-Linux-Post-Install-Script/issues/16#issuecomment-313518473, or mute the thread https://github.com/notifications/unsubscribe-auth/AG0pIkQwh0VwGBIVD4sYhXL4f9oDCVxtks5sLUtngaJpZM4OHx_J .

Grippy98 avatar Jul 06 '17 21:07 Grippy98

@Grippentech Right i mean the Touchpad.

I also noticed that the USB ports doesn't work.

Dm.txt

gravemalte avatar Jul 06 '17 21:07 gravemalte

Guys im watching You dont worry :)

kajetan-mazur avatar Jul 07 '17 06:07 kajetan-mazur

This is interesting, i've been trying to get the sound and backlight working on archlinux and i'm still stuck. I've upgraded the kernel to the latest staging one, but that broke everything : i have 35 volume outputs with that on alsamixer, and a kernel panic if trying to read an audio file because of all those output even muted...

I may try a debian based distro (even if i'm not really used to that) and report here my eventual discoveries ;)

Furthermore, I noticed another important issue that hasn't been reported yet (according to my researches) : if you try to crypt the installation (with luks etc.), and then reboot, the internal keyboard doesn't work when it asks for the luks password (the keyboard works in grub, and after the password if an usb keyboard is used to unencrypt the root partition). Of course I tested to load all the different modules, loaded the hooks before mkinitcpio etc. Sounds to me that there's a issue with the keyboard since the backlight keys are not recognized while testing with xev.

garchymede avatar Jul 07 '17 22:07 garchymede

I didn't try any debian based distro yet, but here are some news that may be interesting for your project : I reinstalled entirely archlinux with the 4.12 staging kernel instead of 4.11.9-1, and xfce (instead of my usual i3 session) on the top of that. The improvement is huge since now everyhting is working nicely : keyboard, backlight, wifi, trackpad (mouse, scroll, touch), usb ports, (didn't try the sd slot yet), suspend, power management (up to 14 hours on low backlight withtout wifi!). The sound issue is a bit tricky : the new kernel adds an improvement to the sound card since it is now recognized by alsa and it shows as 'bytcht-nocodec', but the drivers for the exact x2072x sound card aren't implemented, so it's not working... I will try to find if those driver and the config files are laying somewhere on the web so as to put them in the /ush/share/alsa/ucm folder, if that works, the only issue remaining for me would be the keyboard at the luks prompt password for decryption :) Have you tried the latest xfce on your distros ? If so, do you have the same results ?

garchymede avatar Jul 08 '17 10:07 garchymede

Hey, sorry but I don't have time to do a full reply to all our notes rn but they are very helpful, I'll get back to you tonight. You can find the UCM file inside the releases section of the distro. See if that works.

I also noticed the encryption keyboard issue but I think that's just down to the keyboard needing drivers that's don't load yet.

On Jul 8, 2017 12:19 PM, "garchymede" [email protected] wrote:

I didn't try any debian based distro yet, but here are some news that may be interesting for your project : I reinstalled entirely archlinux with the 4.12 staging kernel instead of 4.11.9-1, and xfce (instead of my usual i3 session) on the top of that. The improvement is huge since now everyhting is working nicely : keyboard, backlight, wifi, trackpad (mouse, scroll, touch), suspend, power management (up to 14 hours on low backlight withtout wifi!). The sound issue is a bit tricky : the new kernel adds an improvement to the sound card since it is now recognized by alsa and it shows as 'bytcht-nocodec', but the drivers for the exact x2072x sound card aren't implemented, so it's not working... I will try to find if those driver and the config files are laying somewhere on the web so as to put them in the /ush/share/alsa/ucm folder, if that works, the only issue remaining for me would be the keyboard at the luks prompt password for decryption :) Have you tried the latest xfce on your distros ? If so, do you have the same results ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Grippentech/Asus-E200HA-Linux-Post-Install-Script/issues/16#issuecomment-313847397, or mute the thread https://github.com/notifications/unsubscribe-auth/AG0pImsSKhE-JjlwsuefYNOpATEy46nUks5sL1etgaJpZM4OHx_J .

Grippy98 avatar Jul 08 '17 10:07 Grippy98

Ok so I have a bit of time to try and figure this out and I'm looking through the output you sent me @Daylien

So as far as Touchpad goes: There's no mention of any errors nor does it report finding the device at boot time... nor can I find the specific module to load. Can you try installing this: "https://github.com/vlasenko/hid-asus-dkms" ? It's been integrated into the mainline kernel since 4.10 but oh well... might as well try it. I don't see a mention of the particular module in the config file.

Sound Driver It's reporting that it's loading it correctly... or at least so it seems. I'm a bit at a loss for this without some more troubleshooting for now.

@garchymede The driver and UCM files can be found in this repo by Takashi Iwai: git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git

That is where I've been building my kernels from, you can find a up to date version of the config file I'm using here (https://gist.github.com/Grippentech/3be10b39ea487cc8960166911aff0ad0 (the minified version that has sound broken rn... otherwise just build a kernel with -y or the optimal settings, but it will be really big)):

Grippy98 avatar Jul 08 '17 20:07 Grippy98

Also note for the kernel on git, you'll have to switch to branch 'topic/asus-e100h-4.12'

Grippy98 avatar Jul 08 '17 20:07 Grippy98

thanks a lot ! that's really helpful! Going to try this firmware this evening !

About the touchpad's concern, I think I can help you. It seems to me (after having tried all kind of modules to load the keyboard at encryption passwords) that the module is named elan_i2c or i2c_hid. At least that how I decrypted the dmesg...

If that can help, the following modules are the ones that I noticed directly related to the e200 on archlinux : ath10k_pci intel_hid hid_asus hidraw0 (don't know anything about this one though) intel_sst_acpi (failing to load : 'no matching kernel') elan_i2c i2c_hid

garchymede avatar Jul 08 '17 20:07 garchymede

found this on the forum : https://bbs.archlinux.org/viewtopic.php?pid=1712612#p1712612

if I'm not mistaken, the reading is interesting since it seems that they got the sound working without any modification due to a special kernel

garchymede avatar Jul 08 '17 21:07 garchymede

From what I see they're only talking about audio over HDMI, nothing related to our Connexant codec. Am I missing something?

On Jul 8, 2017 11:51 PM, "garchymede" [email protected] wrote:

found this on the forum : https://bbs.archlinux.org/ viewtopic.php?pid=1712612#p1712612

if I'm not mistaken, the reading is interesting since it seems that they got the sound working without any modification due to a special kernel

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Grippentech/Asus-E200HA-Linux-Post-Install-Script/issues/16#issuecomment-313883113, or mute the thread https://github.com/notifications/unsubscribe-auth/AG0pIozzeqMMZ3SKyNhUXUTCnD-aNUf2ks5sL_negaJpZM4OHx_J .

Grippy98 avatar Jul 08 '17 21:07 Grippy98

na, you're right, I thought at first they made it working together with the hdmi one in alsa, but doesn't seem to be the case at all

garchymede avatar Jul 08 '17 21:07 garchymede