https://wiki.archlinux.org/api.php?action=feedcontributions&user=Clu&feedformat=atomArchWiki - User contributions [en]2024-03-29T02:00:30ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=ASUS_Zenbook_UX31E&diff=182314ASUS Zenbook UX31E2012-02-05T22:45:43Z<p>Clu: /* Ethernet - USB adapter */</p>
<hr />
<div>[[Category:ASUS (English)]]<br />
{{i18n|Asus Ux31}}<br />
<br />
This page contains instructions, tips, pointers, and links for installing and configuring Arch Linux on the ASUS Zenbook UX31E Ultrabook.<br />
''(There is probably little/no difference with his 11" little brother, the UX21E)<br />
<br />
== Installation issues ==<br />
If you get an error trying to format partitions when installing Arch try adding this line to the kernel parameters<br />
libata.dma=0<br />
<br />
== Compatibility ==<br />
For best user experience, use the latest mainline kernel ({{AUR|linux-mainline}}).<br />
<br />
The following article refers to at least kernel 3.2.rc6<br />
<br />
=== Touch Pad ===<br />
There are different versions of the UX31, some have Sentelic and some have Elenatec - Touch pads.<br />
<br />
==== Elenatec Touch pads ====<br />
Touch & Scroll works out of the box. Clickpad functionality does not. (However, using two and three finger touches for right an middle click works fine).<br />
<br />
If higher pressure must be applied to your touchpad in order to function properly, tweak the following properties according to your needs [http://linux.die.net/man/4/synaptics]<br />
synclient FingerLow=5<br />
synclient FingerHigh=15<br />
Alternatively, edit your {{Ic|/etc/X11/xorg.conf.d/10-synaptics.conf}}<br />
Section "InputClass"<br />
Identifier "touchpad catchall"<br />
Driver "synaptics"<br />
MatchIsTouchpad "on"<br />
MatchDevicePath "/dev/input/event*"<br />
Option "TapButton1" "1"<br />
Option "TapButton2" "3"<br />
Option "TapButton3" "2"<br />
Option "VertTwoFingerScroll" "1"<br />
Option "HorizTwoFingerScroll" "1"<br />
Option "FingerLow" "5"<br />
Option "FingerHigh" "15"<br />
EndSection<br />
<br />
==== Sentelic Touchpads ====<br />
{{Note|The Sentelic Touchpad drivers have been added to the 3.2 kernel, so it should work out of the box by now.}}<br />
Some kind of driver seems to be available here.<br />
https://github.com/ReubenBond/sentelic-multitouch<br />
In fact, ReubenBond has made contact with a sentelic representative who has provided him with official documentation on putting the device into absolute positioning mode. The latter can be accessed here:<br />
http://fsp-lnxdrv.svn.sourceforge.net/viewvc/fsp-lnxdrv/trunk/doc/fsp_packet.txt?revision=43&view=markup<br />
<br />
This looks very promising and ReubenBond is committed to developing a driver in the next few weeks. This is all referenced in the forum<br />
https://bbs.archlinux.org/viewtopic.php?id=125262&p=2<br />
<br />
Another even more advanced progress on driver is available here:<br />
https://github.com/saaros/sentelic<br />
<br />
Please document any findings here.<br />
<br />
=== Graphics ===<br />
Works out of the box<br />
<br />
=== Wireless ===<br />
Works fine with the ath9k driver, included in the kernel since 2.6.27.<br />
Edit [[rc.conf]] as root and add {{ic|ath9k}} to the {{ic|MODULES}} array.<br />
<br />
{{Warning|Do not forget to install the wireless_tools and wpa_suppliant packages during the installation since you will get stuck with no internet access if you don't!}}<br />
<br />
=== Ethernet - USB adapter ===<br />
{{Note|The Asix USB ethernet drivers are included in the current (3.2.2-1) kernel, so it should work out of the box now}}<br />
The Ethernet USB adapater which comes with the ASUS UX31 and UX21 models is the Asix "USB to Fast Ethernet" adapter, model AX88772B. At the present, the device is not recognized by the currently available kernels. However, the source for the driver for Linux Kernels 2.6.38 and later can be downloaded at the following link: AX88772B Linux Driver v4.2.0: http://www.asix.com.tw/FrootAttach/driver/AX88772B_772A_760_772_178_LINUX_Driver_v4.2.0_Source.zip.<br />
<br />
Once downloaded, the source needs to be compiled. First unzip the file as follows:<br />
unzip AX88772B_772A_760_772_178_LINUX_Driver_v4.2.0_Source.zip<br />
Next, go into the unzipped directory and compile the source as follows:<br />
cd AX88772B_772A_760_772_178_LINUX_Driver_v4.1.0_Source<br />
make<br />
Install the just compiled module:<br />
sudo make install<br />
Finally load the module:<br />
sudo modprobe asix<br />
That's it. You should be able to connect using a wired connection now.<br />
<br />
=== Solid State Drive ===<br />
Check [[Solid_State_Drives]]<br />
<br />
== Power Management ==<br />
<br />
=== Suspend to RAM ===<br />
The USB modules must be unloaded or the laptop won't come out of sleep mode.<br />
<br />
Put<br />
SUSPEND_MODULES="xhci_hcd ehci_hcd uhci_hd"<br />
in<br />
/etc/pm/config.d/unload_module<br />
<br />
The USB 3.0 module needs to be unloaded before suspending and X needs to disable/enable DPMS to get the screen back on on resume.<br />
<br />
This can be done by creating a script in /etc/pm/sleep.d/<br />
[[Pm-utils#Advanced_Configuration]]<br />
<br />
This works with kernel >= 3.1.8-1 :<br />
{{hc|/etc/pm/sleep.d/95usbscreen|EHCI_BUSES&#61;"0000:00:1a.0 0000:00:1d.0"<br />
case "${1}" in<br />
resume&#124;thaw)<br />
# Disable touch-to-tap on Zenbook Sentelic touchpad<br />
# I don't know if this is needed<br />
echo -n 0x90 0x80 > /sys/devices/platform/i8042/serio4/setreg<br />
echo -n c > /sys/devices/platform/i8042/serio4/flags<br />
# Hacky workaround to fix display after suspend<br />
export DISPLAY&#61;":0"<br />
export XAUTHORITY&#61;"/home/YOURUSER/.Xauthority"<br />
xset dpms force off<br />
xset dpms force on<br />
;;<br />
esac<br />
}}<br />
<br />
Don't forget to make the script executable :<br />
# chmod +x /etc/pm/sleep.d/95usbscreen<br />
<br />
=== PCIe ASPM ===<br />
Do not add the following option to the kernel line<br />
pcie_aspm=force <br />
if<br />
dmesg | grep -i "acpi fadt"<br />
outputs<br />
ACPI FADT declares the system doesn't support PCIe ASPM, so disable it.<br />
<br />
=== i915 ===<br />
Enabling {{ic|i915_enable_rc6}} will improve battery perfomance significatively but might also cause sudden shutdowns. To enable it, add the following option to your kernel line.<br />
i915.i915_enable_rc6=1<br />
<br />
To check the current state of all {{ic|i915}} parameters execute as root (bash)<br />
for i in /sys/module/i915/parameters/*;do echo ${i}=`cat $i`;done<br />
<br />
Module parameter details<br />
modinfo i915<br />
<br />
For sudden shutdowns you can try [http://files.benesovi.eu/ux31e/ fixing] DSDT part of ACPI.<br />
<br />
=== Additional powersavings ===<br />
Configure [[Laptop_Mode_Tools]] and don't forget to check [[CPU_Frequency_Scaling]]<br />
<br />
== Additional ressources ==<br />
*https://help.ubuntu.com/community/AsusZenbook<br />
*http://www.lesswatts.org/</div>Cluhttps://wiki.archlinux.org/index.php?title=User:Clu&diff=120889User:Clu2010-11-09T08:30:17Z<p>Clu: user page.</p>
<hr />
<div>Just another user.<br />
<br />
* [https://aur.archlinux.org/packages.php?SeB=m&K=clu AUR packages]</div>Cluhttps://wiki.archlinux.org/index.php?title=Chromium&diff=120888Chromium2010-11-09T08:28:20Z<p>Clu: /* libpdf.so */ The instructions for hacking libpdf.so into chromium plugins used an out of date path. I have tested this and it works in the path that I added (7.0.517.44-1 from extra).</p>
<hr />
<div>[[Category:Internet and Email (English)]]<br />
Chromium is an open source graphical web browser from Google, based on the [[Wikipedia: WebKit|WebKit]] rendering engine.<br />
<br />
== Installation ==<br />
The stable version of chromium can be installed from the official repository by:<br />
# pacman -S chromium<br />
<br />
There are also beta and dev versions, which can be found in [[Arch User Repository]] under the name of [http://aur.archlinux.org/packages.php?ID=40059 chromium-beta] and [http://aur.archlinux.org/packages.php?ID=37244 chromium-dev].<br />
{{Note|Compiling chromium-beta or chromium-dev takes at least as long as compiling the linux kernel.}}<br />
<br />
There are also some packages in the AUR which provide the binary version of Google Chrome.<br />
<br />
See [http://news.softpedia.com/news/Google-Chrome-vs-Chromium-Understanding-Stable-Beta-Dev-Releases-and-Version-No-140060.shtml this article] for an explanation of the differences between the three flavours, Chromium vs. Chrome, and the version numbers.<br />
<br />
== Configuration ==<br />
=== Displaying various non-latin scripts ===<br />
To correctly display Chinese, Japanese, Korean... etc characters, see [[Fonts#Font_packages|here]] for detailed instructions to install various TrueType fonts.<br />
<br />
=== Using chromium with no desktop environment ===<br />
<br />
Unlike [[Firefox]], chromium does not maintain its own database of mimetype-to-application associations. Instead, it relies on {{Filename|xdg-open}} (part of extra/xdg-utils) to open files and, for example, [[Wikipedia: Magnet_URI_scheme|magnet links]].<br />
<br />
Inside a [[Desktop Environment|desktop environment]] (e.g. [[GNOME|Gnome]], or [[KDE|Kde]], or [[Xfce]]), {{Filename|xdg-open}} simply passes the arguments to that desktop environment's file-opener application ({{Filename|gnome-open}}, {{Filename|kde-open}}, or {{Filename|exo-open}}, respectively), which means that the associations are left up to the desktop environment.<br />
<br />
However, when no desktop environment is detected (for example when one runs a standalone [[Window Manager|window manager]], e.g. [[Openbox]]), {{Filename|xdg-open}}'s behaviour becomes rather strange and annoying: many filetypes opened in firefox or chromium itself, no support for magnet links, etc.<br />
<br />
There are a number of possible solutions to this problem, outlined below.<br />
<br />
* Improve xdg-open, make it smarter (aka "patches welcome" :P )<br />
<br />
* Use part of a desktop environment, specifically, the part which includes the file opener; for gnome, that would be 'libgnome' (and its dependencies), for xfce, 'exo'. The $DE environment variable needs to be exported before starting the window manager. For example:<br />
<blockquote>{{File|name=~/.xinitrc|content=<br />
export DE=gnome<br />
exec ck-launch-session openbox<br />
}}</blockquote><br />
<br />
* Use [http://aur.archlinux.org/packages.php?ID=32911 mimeo] (written by an arch (trusted) user) and [http://aur.archlinux.org/packages.php?ID=32912 xdg-utils-mimeo], which replaces extra/xdg-utils and contains a {{Filename|xdg-open}} script patched to make use of {{Filename|mimeo}} the same way {{Filename|gnome-open}} would be used. Mimetype<->application associations can then be customised easily in {{Filename|/etc/mime.types}} or {{Filename|~/.mime.types}}<br />
<br />
* When using openbox and no Desktop Environment (=DE) like KDE, GNOME or XFCE do following:<br />
<blockquote>{{File|name=~/.config/openbox/autostart.sh|content=<br />
export BROWSER=chromium<br />
}}</blockquote><br />
Attention: Do not export any DE environment variable !<br />
Then, you basically have to fill the ~/.local/share/applications/defaults.list file with default associations. As this can be painful, some utilities are available:<br />
* xdg-mime: not that intuitive; e.g. to use xpdf as default pdf viewer:<br />
$ xdg-mime default xpdf.desktop application/pdf<br />
* mimetype (perl-file-mimeinfo package): more intuitive; e.g. to select default application for a given extension (you need a sample file):<br />
$ mimetype -d file.extension<br />
<br />
This should create an entry in your local mime database:<br />
<blockquote>{{File|name=~/.local/share/applications/defaults.list|content=<br />
[Default Applications]<br />
text/html=chromium.desktop<br />
application/pdf=xpdf.desktop<br />
}}</blockquote><br />
Restart chromium and your pdf files should be opened with xpdf now.<br />
For me it only worked as normal user - as root I had problems cause no directories for the local mime times were created.<br />
See also this thread [https://bbs.archlinux.org/viewtopic.php?id=93956].<br />
<br />
=== Font Rendering ===<br />
Chromium is now supposed to use the settings in {{Filename|~/.fonts.conf}}, though you may have to edit it manually (see [[Font_Configuration#Basic_settings|Font Configuration]]). If the fonts are still rendered badly you can use xft settings [[Xdefaults|as suggested here]]. Just create {{Filename|~/.Xdefaults}} if it doesn't exist and add in:<br />
<pre><br />
! Xft settings ---------------------------------------------------------------<br />
<br />
Xft.dpi: 96<br />
Xft.antialias: true<br />
Xft.rgba: rgb<br />
Xft.hinting: true<br />
Xft.hintstyle: hintslight<br />
</pre><br />
<br />
{{Note|these settings will affect any application that reads {{Filename|~/.Xdefaults}}, not just chromium; one example is [[Rxvt-unicode|rxvt-unicode]].}}<br />
<br />
=== Default browser ===<br />
The simpliest way to make chromium the default browser is to set variable $BROWSER=chromium in ~/.bashrc (depends on your shell, e.g. ~/.zshrc for zsh)<br />
if [ -n "$DISPLAY" ]; then<br />
BROWSER=chromium<br />
fi<br />
<br />
The other way is to edit the ''xdg-open'' script.<br />
$ sudo $YOUR_EDITOR /usr/bin/xdg-open<br />
At almost the bottom on the file, is a long horizontal list of browsers:<br />
if [ x"$DE" = x"" ]; then<br />
# if BROWSER variable is not set, check some well known browsers instead<br />
if [ x"$BROWSER" = x"" ]; then<br />
BROWSER=links2:links:lynx:w3m<br />
if [ -n "$DISPLAY" ]; then<br />
BROWSER=firefox:mozilla:epiphany:konqueror:chromium-browser:google-chrome:$BROWSER<br />
fi<br />
fi<br />
DE=generic<br />
fi<br />
Add '''chromium:''' ''(mind the colon which separates the entries)'' before '''firefox:mozilla:''' ... and save. To test if this were conducted successfully, type this into your terminal:<br />
<pre>$ xdg-open http://google.com</pre><br />
If everything went perfect, either a new tab inside Chromium, or a new window would open and display the Google homepage, depending on your settings.<br />
<br />
Another option, when using '''mimeo''', is to associate "http://" links with chromium:<br />
{{File|name=~/.mime.types|content=<nowiki><br />
/usr/bin/chromium<br />
^http://<br />
</nowiki>}}<br />
<br />
=== Flash Player ===<br />
<br />
If running i686 Arch Linux, all one needs to do is to install the flash plugin and restart chromium:<br />
# pacman -S flashplugin<br />
<br />
For x86_64, one [http://www.archlinux.org/news/508/ needs to enable] the new [multilib] repository.<br />
# pacman -S flashplugin<br />
<br />
=== Open PDF files inside Chromium ===<br />
<br />
There are two ways to do this: The first one by using Google Chrome's own PDF rendering plugin, the second by allowing Chromium access to e. g. Adobe Reader via the mozplugger plugin.<br />
<br />
==== libpdf.so ====<br />
<br />
libpdf is Google's own implementation of a PDF renderer. While compatible, it is currently only part of Chrome releases, not Chromium ones. The easiest way to add it to the latter is:<br />
<br />
Download a Google Chrome release that corresponds to the version of Chromium you use.<br />
<br />
$ wget https://dl-ssl.google.com/linux/direct/google-chrome-stable_current_i386.deb<br />
<br />
$ wget https://dl-ssl.google.com/linux/direct/google-chrome-stable_current_amd64.deb<br />
<br />
Extract and fetch {{Filename|libpdf.so}} from {{Filename|/opt/google/chrome/}} in {{Filename|data.tar.lzma}}.<br />
<br />
Move the file to {{Filename|/usr/lib/chromium}}. A change of its file permissions may be necessary (the permission of libpdf.so should be 755).<br />
<br />
Start Chromium and open about:plugins. "Chrome PDF Viewer" should now view; it may need to be enabled.<br />
<br />
==== mozplugger ====<br />
<br />
To use mozplugger, a small edit to its sources is required: Grab its [http://aur.archlinux.org/packages.php?ID=9458 PKGBUILD] from AUR and download the sources with: <br />
<br />
$ makepkg -o<br />
<br />
Next open up {{Filename|mozplugger.c}} and search for "NPPVpluginNeedsXEmbed". Change the line directly below from:<br />
<br />
$ *((NPBool *)value) = …;<br />
<br />
to:<br />
<br />
$ *((NPBool *)value) = 1;"<br />
<br />
After the change execute:<br />
<br />
$ makepkg -ei<br />
<br />
to build and install without overwriting the source.<br />
<br />
=== Certificates ===<br />
<br />
Chromium uses [[Nss | NSS]] for the certificate management. Actually there is no graphical user interface for NSS therefore you can use the CLI.<br />
<br />
== Tips and tricks ==<br />
=== Profile in tmpfs ===<br />
The default Chromium profile is typically located in {{filename|$HOME/.config/chromium}}. This profile can be relocated to an available [http://en.wikipedia.org/wiki/Tmpfs tmpfs] filesystem, including <tt>/tmp</tt>, or <tt>/dev/shm</tt> for improvements in application response as the the entire profile is now stored in RAM. Another benefit is a reduction in disk read and write operations, of which SSD drives benefit the most.<br />
<br />
* At system startup, call [http://en.wikipedia.org/wiki/Rsync rsync] to recursively copy the folder {{filename|/home/USER/.config/chromium}} to {{filename|/dev/shm/.chromium}}:<br />
#!/bin/bash<br />
#<br />
# /etc/rc.local<br />
#<br />
rsync -a /home/USER/.config/chromium /dev/shm/.chromium<br />
<br />
* At system shutdown, call [http://en.wikipedia.org/wiki/Rsync rsync] to recursively copy the folder {{filename|/dev/shm/.chromium}} to {{filename|/home/USER/.config/chromium}}:<br />
#!/bin/bash<br />
#<br />
# /etc/rc.local.shutdown<br />
#<br />
rsync -a --delete /dev/shm/.chromium home/USER/.config/chromium<br />
<br />
* To copy only bookmarks and the preferences file back to the disk profile:<br />
<br />
#!/bin/bash<br />
#<br />
# /etc/rc.local.shutdown<br />
#<br />
rsync -a /dev/shm/.chromium/Default/Bookmarks home/USER/.config/chromium/Bookmarks &<br />
rsync -a /dev/shm/.chromium/Default/Preferences home/USER/.config/chromium/Preferences<br />
<br />
* Specify the user data directory where the browser will look for all of its state:<br />
<br />
$ chromium --user-data-dir=/dev/shm/.chromium<br />
<br />
* Any number of command-line options may be included in the string:<br />
<br />
$ chromium --block-nonsandboxed-plugins --incognito --disable-java --safe-plugins --start-maximized --user-data-dir=/dev/shm/.chromium<br />
<br />
== Troubleshooting ==<br />
=== Default profile ===<br />
If you cannot get your default profile when you try to run chromium:<br />
<pre><br />
$ chromium<br />
[2630:2630:485325611:FATAL:chrome/browser/browser_main.cc(755)] Check failed: profile. <br />
Cannot get default profile. Trace/breakpoint trap<br />
</pre><br />
<br />
Just correct the owner of the directory {{Filename|~/.config/chromium}}, and it will work.<br />
<pre><br />
$ chown -R yourusername: ~/.config/chromium<br />
</pre><br />
<br />
== Resources ==<br />
* [http://www.chromium.org/Home Chromium homepage]<br />
* [[Wikipedia: Chromium_(web_browser)#Differences_between_Chromium_and_Google_Chrome|Differences between Chromium and Google Chrome]]<br />
* [http://googlechromereleases.blogspot.com/ Announcements and release notes for the Google Chrome browser]</div>Clu