You are not logged in.

#1 2014-02-17 22:23:31

7SLEVIN
Member
Registered: 2011-11-22
Posts: 27
Website

Asus Zenbook UX302

This is meant as a general thread for arch users with a Asus Zenbook UX302LG laptop.


Sound (ALSA)
Put the following in /etc/modprobe.d/alsa.conf for example.

options snd_hda_intel enable=0,1
options snd slots=snd_hda_intel 
options snd_hda_intel index=0

(Cheers, headkase. original thread)


Function keys
See the ASUS Zenbook Prime UX31A wiki page.

Short summary: For screen backligh you'll need the acpi_osi= kernel option, and it will 'just work', together with wireless toggle (F2) and screen on/off (F7). You'll need external module for keyboard backlight, as described in wiki.


Black screen on boot
Firstly, as motley pointed out to me here, if you're having problems with black screen on boot, install the linux-mainline kernel from AUR and things will probably be fine.
As a temporary solution with older kernels, like linux 3.12, you can use the i915.modeset=0 kernel option. You'll probably be able to start xserver, but not much else.
Also, the i915.i915_enable_rc6=1 kernel options will boost your battery life!


Resume from suspend
To fix the resume problems, you'll need to patch the mainline kernel (currently done successfully with rc7). Again, our dear motley has made things easy with a nice little script, to be found his repo here. (There you also have the patch kernel patch).

Last edited by 7SLEVIN (2014-03-24 08:37:25)

Offline

#2 2014-02-19 23:01:05

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

Thanks for starting the thread! I haven't gotten back to messing with the suspend to RAM troubleshooting...it has been a busy week.  Previously I did try some kernel parameters, but none of the testing was very controlled or scientific as I was limited on time (acpi_backlight=vendor acpi_osi="!Windows 2012" etc.). They didn't seem to make a difference.

I also connected via SSH from my desktop to see what was happening after the resume process failed. The screen power was definitely on and the backlight brightness was still OK. I could echo values from my SSH connection and change the brightness using sysfs. However, I could see no video, just some of the ugly infamous Asus bleed-through.
https://wiki.archlinux.org/index.php/backlight

While I am not done troubleshooting, I do fear this could be a kernel bug in mainline and it will have to be reported and fixed, or perhaps there are some other modules that need to be unloaded before suspend. I tried some Intel wiki stuff concerning unloading some modules, but none of that seems to work.  If given some time, I could start looking at the resume code for i915 and/or DRM.  I don't know squat about these particular drivers, but I can read code and am am familiar with the kernel tree and how things work in other subsystems. I could add debugging if I suspect foul play somewhere during the resume or just want to see what is happening. The kernel log is currently pretty clean when this is happening, I see normal suspend resume events being reported. I don't see anything that is very helpful, at least in my first quick pass at it.  I have not reviewed the XOrg logs etc.

Oh...I also tried pm_utils early on and used the pm-suspend command insead of using my sleep Zz function key.  It didn't produce any different results when trying to resume, but did cause something to mess with my audio. These are old routines and probably won't help anyhow. I uninstalled pm-utils after that exercise.

Just wanted to share my early trials with my Asus Zenbook UX302LA in case it helps you or someone else that comes along.

Offline

#3 2014-02-21 13:23:40

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

Hello, I found another fix for the UX302LA...it is more of a kernel bug workaround at this point and only tested on 3.14 rc2.

Adding "acpi_osi=" to the kernel command line in grub fixes the folowing function keys: brightness (F5 & F6) , WLAN toggle (F2), and video toggle (F8)

https://bugzilla.kernel.org/show_bug.cgi?id=70241

I will open a kernel bug on the sleep issue when I get a chance.

Offline

#4 2014-02-21 16:04:55

7SLEVIN
Member
Registered: 2011-11-22
Posts: 27
Website

Re: Asus Zenbook UX302

Nice debuging!

Can confirm that the kernel options you mention doesnt do much use. (Except acpi_osi=, which fixes the backlight amongst others). I've also tried settings `resume=<swap partuuid>` as kernel option, but without any luck.

I'll put the backlight stuff up in the first post. It's also mentioned in the ASUS Zenbook Prime UX31A wiki.

Offline

#5 2014-02-22 22:43:49

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

Hello again,

Good news! I have fixed the suspend issue on my UX302LA by finding a workaround patch and updating it to work with mainline kernel 3.14-rc3. Not 100% sure this will work with UX302LG, but I suspect it will.

Here is the script I created as I went. I suggest you download, open the script and execute one command at a time since I have not done extensive testing with it. Also, it removes the work folder at the end that some might want to keep around to play with.

The script (WIP) - Downloads kernel 3.14-rc3, applies a patch, and installs the kernel, modules, and initramfs.
https://drive.google.com/file/d/0BxMvXg … nhZRTRTTFk

Notes:

  • The patch and script is made for mainline kernel 3.14-rc3. It will need to updated each time an new RC or when the official 3.14 is released.

  • My script names the kernel with suffix "-mainline-motley" and also uses this name in my example GRUB menu entry. I did this to keep it separate from linux-mainline in AUR. As they fix the kernel, hopefully this workaround will not be needed for long. There are several other Intel quirks that have not made it to mainline, so you never know.

  • You will have to upgrade GRUB on your own to boot. I just edited my "live" grub.cfg used for UEFI and added a new menuentry entry (see my menuentry below):

  • I already had the build dependencies on my machine from installing linux-mainline from AUR.

  • Again, this has not put through a lot of testing. I recommend you issue the commands in the script one by one to make sure you have the dependencies and that the commands work properly for your system..

  • After upgrading from 3.14 rc2 to 3.14 rc3, I could no longer use "i915.i915_enable_rc6=1" as a kernel parameter. If I do, I don't get proper video resolution. However, I still do use "acpi_osi=" to fix the function keys as I posted above and now in the OP. See the grub entry below.

Reference:
https://bugs.freedesktop.org/show_bug.cgi?id=73567

Patch that fixes the issue from reference URL above (thanks Alberto Aguirre!):
https://launchpadlibrarian.net/16624880 … nk-s.patch

Patch I tweaked and then is referenced/used by main script to patch the kernel:
https://googledrive.com/host/0BxMvXgjEz … lYtSkJCSXc

My grub entry:

menuentry 'Mainline motley' --class antergos --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux--mainline-48c5f43e-905d-455d-b16a-d8fff53cbef4' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_msdos 
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  48c5f43e-905d-455d-b16a-d8fff53cbef4
	else
	  search --no-floppy --fs-uuid --set=root 48c5f43e-905d-455d-b16a-d8fff53cbef4
	fi
	echo	'Loading Linux  ...'
	linux	/boot/vmlinuz-mainline-motley root=UUID=48c5f43e-905d-455d-b16a-d8fff53cbef4 rw  quiet acpi_osi=
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-mainline-motley.img
}

Offline

#6 2014-02-23 00:28:30

7SLEVIN
Member
Registered: 2011-11-22
Posts: 27
Website

Re: Asus Zenbook UX302

You fixed it!! Wow. You sir, are a boss.

Followed the exact steps you explained, without any problems.  Therefor, I renamed the thread to just UX302, as none has yet been specific to LG/LA variants.

For the record, here's my boot loader entry with Gummiboot:

title   Arch Linux (motley)
linux 	/vmlinuz-mainline-motley
initrd	/initramfs-mainline-motley.img
options	root=PARTUUID=9785a2e5-ad84-496d-b254-aa710c3fe107 rw acpi_osi=

One question, though. I am getting som messy output from dmesg when being promped with Getty login prompt, right after boot:

...
[   74.421789] ACPI: Waking up from system sleep state S3
[   74.459908] xhci_hcd 0000:00:14.0: System wakeup disabled by ACPI
[   74.526875] PM: noirq resume of devices complete after 92.873 msecs
[   74.527299] PM: early resume of devices complete after 0.388 msecs
[   74.527428] usb usb1: root hub lost power or was reset
[   74.527432] usb usb2: root hub lost power or was reset
[   74.527696] xhci_hcd 0000:00:14.0: irq 57 for MSI/MSI-X
[   74.527828] mei_me 0000:00:16.0: irq 59 for MSI/MSI-X
[   74.528017] nouveau  [     DRM] re-enabling device...
[   74.528037] nouveau  [     DRM] resuming kernel object tree...
[   74.528063] nouveau  [   VBIOS][0000:04:00.0] running init tables
[   74.530556] snd_hda_intel 0000:00:1b.0: irq 60 for MSI/MSI-X
[   74.592785] nouveau E[   PIBUS][0000:04:00.0] GPC0: 0x4188ac 0x00000001 (0x1e70822e)
[   74.689886] nouveau  [    VOLT][0000:04:00.0] GPU voltage: 600000uv
[   74.689888] nouveau  [  PTHERM][0000:04:00.0] fan management: automatic
[   74.689990] nouveau  [     CLK][0000:04:00.0] --: core 405 MHz memory 810 MHz 
[   74.692680] nouveau  [     DRM] resuming client object trees...
[   74.694292] nouveau E[    PBUS][0000:04:00.0] MMIO read of 0x00000000 FAULT at 0x000260 [ TIMEOUT ]
[   74.694646] nouveau E[    PBUS][0000:04:00.0] MMIO write of 0xbad0011f FAULT at 0x000260 [ TIMEOUT ]
[   74.853547] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[   74.873179] ata1.00: configured for UDMA/133
[   74.873278] sd 0:0:0:0: [sda] Starting disk
[   74.907058] usb 1-4: reset full-speed USB device number 2 using xhci_hcd
[   75.080884] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88007fe0e6c0
[   75.080887] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88007fe0e700
[   75.080889] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88007fe0e740
[   75.080891] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880222297b00
[   75.080893] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff880222297b40
[   75.240667] usb 1-7: reset full-speed USB device number 4 using xhci_hcd
[   75.415583] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88007fdfea80
[   75.415587] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff88007fdfeac0
[   75.415590] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8800c7e3d7c0
[   75.574252] usb 1-5: reset high-speed USB device number 3 using xhci_hcd
[   75.753977] xhci_hcd 0000:00:14.0: xHCI xhci_drop_endpoint called with disabled ep ffff8802226755c0
[   75.756790] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   75.757006] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   75.768934] PM: resume of devices complete after 1240.625 msecs
[   75.770204] PM: Finishing wakeup.
[   75.770207] Restarting tasks ... done.
[   75.773023] video LNXVIDEO:00: Restoring backlight state
[   75.773034] video LNXVIDEO:01: Restoring backlight state
[   75.782763] Bluetooth: hci0: read Intel version: 370710018002030d00
[   75.782781] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
[   75.891902] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[   75.930445] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   75.930676] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   75.942526] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   76.404827] [drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
[   81.099201] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   81.099429] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   81.110282] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   81.422180] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[   81.422864] ACPI: \_SB_.PCI0.RP05.PEGP: failed to evaluate _DSM
[   81.422880] ACPI Warning: \_SB_.PCI0.RP05.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[   84.937079] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   84.937294] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   84.948839] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   84.966455] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   84.966678] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
[   84.978287] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   87.158495] wlan0: authenticate with f4:ec:38:c7:9e:f4
[   87.160493] wlan0: send auth to f4:ec:38:c7:9e:f4 (try 1/3)
[   87.162221] wlan0: authenticated
[   87.163441] wlan0: associate with f4:ec:38:c7:9e:f4 (try 1/3)
[   87.169872] wlan0: RX AssocResp from f4:ec:38:c7:9e:f4 (capab=0x431 status=0 aid=7)
[   87.172947] wlan0: associated
[   87.172973] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

Any idea what causing it? Anything significant I should worry about?

Again, thanks for sharing this with us! :-D

Offline

#7 2014-02-23 02:06:33

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

You are welcome 7SLEVIN! Glad it worked for you too. Being able to put the device into suspend when walking around the house etc. is so nice!

I think what you are asking about is a kernel log level issue. We are seeing events that we never have seen before because DEFAULT_CONSOLE_LOGLEVEL is set to 7 instead of 4. I guess this isn't a bad thing for the short term, but I will see if I can use "sed" to change the printk log level before building in the script. I am also looking at other uncommon modules and drivers I can remove for better size and performance. Would you be interested in a smaller, more nimbler kernel for our device? If so, I will share an enhanced version of the script when I have something put together.

Thanks for changing the subject of the thread.  It is always great to work with others on stuff when there isn't any one else around me that would be the slight bit interested!  LOL.

Offline

#8 2014-02-23 11:27:38

7SLEVIN
Member
Registered: 2011-11-22
Posts: 27
Website

Re: Asus Zenbook UX302

Ah, thought maybe it was just more verbose loging. This is no issue for me! Just checking if it was not suppose to be there, hehe.

I'd be very interested in a more nimble kernel! The main reason for using Arch is it's lightweight and absence of bloat-ware. Also, it would be fun to learn more about kernel hacking, something I know very little about.

Agreed! :-) Always a releaf when finding someone that has the same problems and motivation for fixing them. That is rarely the case with these hardware specific bugs in my experience. Let's hope this thread can be of help for others as well!

Offline

#9 2014-02-24 16:30:59

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

Hi 7SLEVIN, I have a custom kernel working well for 3.14 rc3, but they have now released 3.14 rc4. I will give rc4 a try first and make sure everything is still working and then post that tonight if all goes well (I'm in in the USA, Eastern time zone). I will keep my work separate for rc3, just in case!  The custom kernel removes over 250 useless drivers\modules that we don't need built and installed (AMD CPU support, ISDN, wireless drivers, video card drivers etc.). I will keep the nouveau drivers for Nvidia since I know the UX302LG model has this card. It also decreases the log level and reduces the default swappiness from 60 to 10. This makes a big difference for me since I use the 500GB HD for swap and secondary storage (I install the / partition onto the 24GB SSD it has).  Before this change, it was using swap too much and the HDD was spinning up to often.

One thing I noticed is that Arch compresses all the kernel modules to save disk space. The start-up of the custom kernel seems a bit faster and I am not compressing the modules. I think we can leave this as an optional step (speed vs storage savings). I don't know a lot about this feature, so I don't know how much we gain be leaving them uncompressed.

How is your existing system running on rc3? Have you found or noted any other issues?

I'll post later tonight and let you know how the rc4 building testing goes.

Last edited by motley (2014-02-24 18:47:40)

Offline

#10 2014-02-24 18:09:31

reese
Member
Registered: 2014-02-22
Posts: 12

Re: Asus Zenbook UX302

Thank you guys SO MUCH for this thread!
Thank You to motley for the custom kernel work!!
I have the UX302LA and am running the 3.14rc3-motley and everything is working great!

While trying to get all this to work I was noticing in my Xorg.0.log that apcid wouold not start.
Not sure if you guys experieneced the same problem, but simply enabling it with systemd fixes it.

 systemctl enable acpid.service 

thanks again !
will keep active on any bugs or other issues I notice.

~Reese

Last edited by reese (2014-02-24 19:42:43)

Offline

#11 2014-02-24 18:54:13

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

reese wrote:

Thank you guys SO MUCH for this thread!
Thank You to motley for the custom kernel work!!
I have the UX302 and am running the 3.14rc3-motley and everything is working great!

While trying to get all this to work I was noticing in my Xorg.0.log that apcid wouold not start.
Not sure if you guys experieneced the same problem, but simply enabling it with systemd fixes it.

 systemctl enable acpid.service 

thanks again !
will keep active on any bugs or other issues I notice.

~Reese

Welcome Reese, glad you have found us..the more, the merrier!  Which model do you have, LA or LG?

Offline

#12 2014-02-25 07:53:13

7SLEVIN
Member
Registered: 2011-11-22
Posts: 27
Website

Re: Asus Zenbook UX302

motley wrote:

Hi 7SLEVIN, I have a custom kernel working well for 3.14 rc3, but they have now released 3.14 rc4. I will give rc4 a try first and make sure everything is still working and then post that tonight if all goes well (I'm in in the USA, Eastern time zone). I will keep my work separate for rc3, just in case!  The custom kernel removes over 250 useless drivers\modules that we don't need built and installed (AMD CPU support, ISDN, wireless drivers, video card drivers etc.). I will keep the nouveau drivers for Nvidia since I know the UX302LG model has this card. It also decreases the log level and reduces the default swappiness from 60 to 10. This makes a big difference for me since I use the 500GB HD for swap and secondary storage (I install the / partition onto the 24GB SSD it has).  Before this change, it was using swap too much and the HDD was spinning up to often.

One thing I noticed is that Arch compresses all the kernel modules to save disk space. The start-up of the custom kernel seems a bit faster and I am not compressing the modules. I think we can leave this as an optional step (speed vs storage savings). I don't know a lot about this feature, so I don't know how much we gain be leaving them uncompressed.

How is your existing system running on rc3? Have you found or noted any other issues?

I'll post later tonight and let you know how the rc4 building testing goes.

Sorry for the slow answer. The university is kicking my ass a bit :-)

Yep, it would be really great to get some of those drivers out of the way. Really excellent idea. Hehe, and thanks for keeping the nouveau!
On compress vs non-compressed I can't help you either. I do not have a issue with storage, though, so if there's some time to save that would be more interesting that storage. Given a reasonable cost-benefit ratio of course.

I haven't had any problems with rc3! Everything is running smooth and starting up nicely from suspend. Love it! Is it anywhere we can have a peak on what you're working on, like posting on github? Since the kernel is so huge that may be a problem, I don't know. It would be great to learn something of this, and just maybe contribute if I'm competent.

PS. Welcome reese! Glad to see the thread could come to greater good.

Offline

#13 2014-02-25 13:29:53

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

HI, unfortunately I have not had enough time to complete what I wanted last night. Work and family have been kicking my ass LOL.  I do have rc4 working and there doesn't seem to be any regression issues to be worried about with the "base" new kernel. Now it is time to add back in the customization that I was working on with rc3..

Currently, I am not modifying the kernel source, except for what I am using "sed" to replace and "patch" to patch as referenced in the main script.  I was considering forking the kernel and maintaining on github or bitbucket, but that won't be really necessary unless I really start modifying the source code with anything significant. So, perhaps what I can do is place the custom kernel defconfig, patches, and main script so you can track the changes I am making. Sound good?

I'll hopefully be able to finish rc4 with custom config soon. Glad to hear rc3 is working well!

Offline

#14 2014-02-25 15:20:22

reese
Member
Registered: 2014-02-22
Posts: 12

Re: Asus Zenbook UX302

Is your guys keyboartd Backlight working along with the function keys ?

So I actually have my keyboard backlight lit.
By installing this from the AUR:
https://aur.archlinux.org/packages/asus-kbd-backlight/

Then I followed the instructions here to get it to light up:
https://wiki.archlinux.org/index.php/AS … _backlight

and I can adjust it manually with CLI as described in the above link.
However when I try to map the commands to the Fn keys Fn+F3 and Fn+F4 through xfce4-keyboard-settings it is not working.
I also tried the 2 bash scripts on the above link. and they are not working either
Now that I am thinking about it this feels more like a xfce-keyboard settings problem then a problem with AUR package or anything else.
Also, yes I do receive events in XEV for those keys.

...p.s. motley I modified my post to say i had the UX302LA
I didnt want to make a post just for that , I knw the mods dont like it. wink

Offline

#15 2014-02-25 16:51:25

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

reese wrote:

Is your guys keyboartd Backlight working along with the function keys ?

So I actually have my keyboard backlight lit.
By installing this from the AUR:
https://aur.archlinux.org/packages/asus-kbd-backlight/

Then I followed the instructions here to get it to light up:
https://wiki.archlinux.org/index.php/AS … _backlight

and I can adjust it manually with CLI as described in the above link.
However when I try to map the commands to the Fn keys Fn+F3 and Fn+F4 through xfce4-keyboard-settings it is not working.
I also tried the 2 bash scripts on the above link. and they are not working either
Now that I am thinking about it this feels more like a xfce-keyboard settings problem then a problem with AUR package or anything else.
Also, yes I do receive events in XEV for those keys.

...p.s. motley I modified my post to say i had the UX302LA
I didnt want to make a post just for that , I knw the mods dont like it. wink

Hi Reese, I looked into the ACPI daemon (acpid).  I don't have this service installed and it looks like the sysfs interface it monitors (/proc/acpi/event) is no longer in the kernel after 3.12 rc1 and higher.  Without acpid, I still can suspend/wake on close/open lid etc., so I don't think this service doing much or is even necessary.
See more here: https://bugzilla.kernel.org/show_bug.cgi?id=66681

My keyboard backlight keys have been working since the get go (even with base Arch kernel if I recall). Since I was lazy and installed Antergos to get my base system installed, it may have configured this for me in Gnome3 not sure. I think you are correct that it is DE related...I noticed they work in Gnome3, but not in Mate. I have a love/hate relationship with all DE's and can never stay on one for long! I stayed away from Gnome3 for a long time and am just using it now because Antergos installed it as the default. Improvements have been made for sure, but I am having some quirks with the top panel tray icons on boot...might have to ditch it soon! I like XFCE quite a lot lately, so I may give that a try on this machine. I am currently playing with Mate/Compiz to see if I can get that tweaked the way I want it.

7SLEVIN, what are you using for a DE?

Offline

#16 2014-02-26 05:47:39

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

HI guys,

Here is the new build and install script for 3.14-rc4:  https://drive.google.com/file/d/0BxMvXg … FFwWmNxNlk

See the comments inside the script. In a nutshell, it will do the following:

  • Download 3.14 rc4 source from kernel.org

  • Download the custom kernel defconfig (removes many drivers, debugging, tracing etc. options that aren't required). (https://drive.google.com/file/d/0BxMvXg … sp=sharing)

  • Apply the suspend patch (https://drive.google.com/file/d/0BxMvXg … sp=sharing)

  • Use sed to lower the log level to 4 (from 7) and reduce swappiness to 10 (from 60) - reducing swappiness is great for the UX302LA if booting from the 24GB SSD and using the 500GB HDD as swap. It really quiets it down the HDD.

  • Build and install the kernel, initramfs, and modules

  • Removes the old /lib/modules folder (see the variables at the top of the script, they will be good for removing the last version).

Let me know how it goes!

Offline

#17 2014-02-26 10:53:11

7SLEVIN
Member
Registered: 2011-11-22
Posts: 27
Website

Re: Asus Zenbook UX302

motley wrote:

Currently, I am not modifying the kernel source, except for what I am using "sed" to replace and "patch" to patch as referenced in the main script.  I was considering forking the kernel and maintaining on github or bitbucket, but that won't be really necessary unless I really start modifying the source code with anything significant. So, perhaps what I can do is place the custom kernel defconfig, patches, and main script so you can track the changes I am making. Sound good?

Ah, sounds like a good idea! How are you planning to go about removing those unused driver/modules? Curious:-)

Woho! I will try out rc4 asap and let you know how it goes.

BTW, I've noticed my browsers (dwb and chromium) sometimes "looses their connection" to the internet when resuming from suspend, just like if I wasn't connected to the internet. Just reopening the program fixes it. No idea if it's relevant, but thought I'd mention it incase someone else experiences the same. I'll look into it if it persists.

Offline

#18 2014-02-26 16:20:42

reese
Member
Registered: 2014-02-22
Posts: 12

Re: Asus Zenbook UX302

Keyboard Backlight XFCE4 fix

 # chmod 0777 /sys/devices/platform/asus-nb-wmi/leds/asus\:\:kbd_backlight/brightness

this is the file for wrwiting the brightness level to


--I can elaborate later I just wanted to jot this fix down in this thread while I had it fresh

Offline

#19 2014-02-26 18:27:02

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

Here is my initial check-in for the project: https://bitbucket.org/motley/kernel_asus_ux302/src

Feel free to fork, experiment and share changes as you see fit. Currently, the wget command downloads the files from my Google drive. I will move the URLs to point at the raw files in Bitbucket in the next version.

7SLEVIN wrote:

How are you planning to go about removing those unused driver/modules? Curious:-)

The kernel configuration file takes care of this in this last release. The modules install folder is about 30MB smaller than the last release. Our uncompressed install is now smaller than the compressed linux-mainline install from AUR smile

reese wrote:

Keyboard Backlight XFCE4 fix

 # chmod 0777 /sys/devices/platform/asus-nb-wmi/leds/asus\:\:kbd_backlight/brightness

this is the file for wrwiting the brightness level to


--I can elaborate later I just wanted to jot this fix down in this thread while I had it fresh

Excellent, thanks. I will be trying XFCE again soon.

Offline

#20 2014-02-26 18:39:47

reese
Member
Registered: 2014-02-22
Posts: 12

Re: Asus Zenbook UX302

reese wrote:

Keyboard Backlight XFCE4 fix

 # chmod 0777 /sys/devices/platform/asus-nb-wmi/leds/asus\:\:kbd_backlight/brightness

this is the file for wrwiting the brightness level to


--I can elaborate later I just wanted to jot this fix down in this thread while I had it fresh


OK so after a reboot the below changes were made to the brightness file:

 [reese@zen ~]$ ll /sys/devices/platform/asus-nb-wmi/leds/asus\:\:kbd_backlight/brightness  

-rw-rw-r-- 1 root users 4096 Feb 26 13:24 /sys/devices/platform/asus-nb-wmi/leds/asus::kbd_backlight/brightness 

it was root:root and 0777
so the asus-kbd-backlight instructions has an

 # asus-kbd-backlight allowusers 

command which I did run
I think that is what did a

chown root:users

however i added myself to the user group "users" 

 # usermod -a -G users reese 

but it still would not let me write to that brightness file
so i did the

 # chmod 0666 /sys/devices/platform/asus-nb-wmi/leds/asus\:\:kbd_backlight/brightness

again and it now works.
still working on it just wanted to provide an update

Last edited by reese (2014-02-27 20:32:43)

Offline

#21 2014-02-28 15:38:30

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

7SLEVIN wrote:

BTW, I've noticed my browsers (dwb and chromium) sometimes "looses their connection" to the internet when resuming from suspend, just like if I wasn't connected to the internet. Just reopening the program fixes it. No idea if it's relevant, but thought I'd mention it incase someone else experiences the same. I'll look into it if it persists.

Hey, during suspend, I find that Wifi shuts off for power saving and then needs to reconnect after resume. This can take few seconds and may make it look like it is the browser having issues. I am using Chrome and while the network may not be ready immediately, it does recover shortly after I see my panel indicator show that I am connected again, i.e. I don't have to restart Chrome.  Do you think this is what is happening for you as well?

P.S.: I have tried almost all the DE's now. I recently tried Cinnamon and KDE. Cinnamon worked OK and all functions keys work out of the box. However, it locks up the UI after working a few minutes. KDE has been working very well and I haven't found any flaws. All function keys work out of the box and it has been stable. I also have used the desktop effects (wobbly windows etc.) out of the box without having to mess with the compositor settings etc.  Not sure if I will stay with KDE or head back to XFCE.  Both have their appeal. I need to see how much RAM and CPU KDE is chewing up..Some days I can't decide if I want eye candy or whether I should be utilitarian.  On this beautiful screen, I am leaning towards the candy!

Last edited by motley (2014-02-28 15:48:10)

Offline

#22 2014-03-01 16:14:20

reese
Member
Registered: 2014-02-22
Posts: 12

Re: Asus Zenbook UX302

I too have been having wifi power management  issues.
I am still using wpa_supplicant to manage my connections.
I experience this problem andomly not just after I close the lid.
Getting wireless back has been very tricky.
There seems to be some conflict going on for me where DHCPCD times out.
I have read elsewhere on the forums this has happened before still looking in to it.
Been trying to get the Citrix ICAClient reciever working for the past 2 days, and finaly succeeded.
Now I need to get Webex working hopefully without having to got a 32bit chroot environment.

Offline

#23 2014-03-02 17:18:33

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

Hey guys,

For wifi issues, perhaps give the latest Intel firmware a try.  This  802.11ac chip we have is still somewhat new and I think bugs are still being worked out in the kernel and in the firmware. I get my best stable connection using the 5GHz N band. I did some testing and find that if I use my G band routers, it is not nearly as stable for me (drops and needs reconnected etc.). Perhaps this what you are seeing as well.

Not saying this will fix it, but it is worth a try and we can monitor for new versions as they come out. This will upgrade the firmware from 22.15.8.0 (provided by Arch linux-firmware) to 22.24.8.0.

From: http://wireless.kernel.org/en/users/Drivers/iwlwifi
Direct Link: http://wireless.kernel.org/en/users/Dri … 24.8.0.tgz

Rename /usr/lib/firmware/iwlwifi-7260-8.ucode to iwlwifi-7260-8.ucode.OLD and then copy the ew iwlwifi-7260-8.ucode file into the original's place.
Reboot and check using "dmesg | grep -i 'loaded firmware'"

$ dmesg | grep -i 'loaded firmware'
[    3.132612] iwlwifi 0000:03:00.0: loaded firmware version 22.24.8.0 op_mode iwlmvm

Also, please state which kernel you are running if you have issues (latest Arch, something else, or my rc3, rc4 etc.)

Last edited by motley (2014-03-02 17:19:46)

Offline

#24 2014-03-04 14:55:17

rubiquity
Member
Registered: 2014-03-03
Posts: 1

Re: Asus Zenbook UX302

UX302LA owner here. Thanks for this thread. When it comes to WiFi I've had the most success using the 7260 firmware as well.

Has anyone had any luck getting the webcam to work? I can't even get it to show up so I can find out the make/model, although a lot of Googling did turn up something about Sunplus? I'm not sure how reliable that is. Oh the joys of using a very new laptop with Linux! smile

Offline

#25 2014-03-05 00:09:07

motley
Member
Registered: 2014-02-17
Posts: 25

Re: Asus Zenbook UX302

I see that kernel 3.14 rc5 is now out, but after first glance at the commits, it doesn't appear like it affects our hardware much (i915 etc). I'll update the kernel script here soon and give it a try.  I want to stay on top of testing in case something breaks so we can report issues.

rubiquity wrote:

UX302LA owner here. Thanks for this thread. When it comes to WiFi I've had the most success using the 7260 firmware as well.

Has anyone had any luck getting the webcam to work? I can't even get it to show up so I can find out the make/model, although a lot of Googling did turn up something about Sunplus? I'm not sure how reliable that is. Oh the joys of using a very new laptop with Linux! smile

Welcome rubiquity.  My webcam works fine with Cheese (/dev/video0), but I haven't tried it with any other software. I am using my rc4 kernel script posted a few posts above, but I believe it has worked with any kernel I have tried.

$ lsusb
Bus 001 Device 004: ID 1bcf:2987 Sunplus Innovation Technology Inc. 

Not sure of your setup, but the proper kernel modules should automatically load when the hardware is sensed.

Last edited by motley (2014-03-12 20:10:17)

Offline

Board footer

Powered by FluxBB