https://wiki.archlinux.org/api.php?action=feedcontributions&user=Fox074&feedformat=atomArchWiki - User contributions [en]2024-03-29T11:28:17ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Samsung_NC10&diff=63906Samsung NC102009-03-04T14:48:28Z<p>Fox074: /* Fn Keys */</p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:Getting and installing Arch (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{stub}}<br />
<br />
=Introduction=<br />
This article aims on providing the informations on installing and setting up Arch Linux on the Samsung NC10.<br />
<br />
A lot of the information is derived from the [http://bbs.archlinux.org/viewtopic.php?id=58117 Arch Forum] and several hints scattered around in the ArchWiki.<br />
<br />
=Installation=<br />
<br />
As all other netbooks the NC10 doesn't have an optical drive so you have to install Arch Linux either through an [[Install_from_USB_stick|USB pen drive]] or via an external USB CD-ROM drive.<br />
<br />
Before you can start the process of installation you have to disable acpi. <br />
To do so edit the bootline by pressing '''e''' in the GRUB menu. Then append<br />
acpi=off<br />
to the kernel line. This is only for installation - once arch is installed you don't need the option anymore.<br />
<br />
The installation itself is pretty much straightforward and you can use the [[Beginners_Guide]] if you need detailed informations.<br />
<br />
=Configure your installation=<br />
==Network==<br />
With the kernel version >=2.6.27 both, LAN and WLAN work out-of-the-box.<br />
<br />
For LAN the module sky2 is used. The Atheros AR242x wireless chipset uses the module ath5k. To avoid conflicts you should blackmask the other wifi modules:<br />
* ath_hal<br />
* ath_pci<br />
* wlan<br />
<br />
==Video==<br />
The Video controller is a typical Intel chipset that works with the xf86-video-intel driver.<br />
<br />
To save some interrupts and therefore power you can disable dri in your xorg.conf. This disables 3D effects but if you don't need them this could be an option.<br />
Section "Device"<br />
Option "NoDRI"<br />
Identifier "Card0"<br />
Driver "intel"<br />
VendorName "Intel Corporation"<br />
BoardName "Mobile 945GME Express Integrated Graphics Controller"<br />
BusID "PCI:0:2:0"<br />
EndSection<br />
<br />
===External VGA===<br />
External VGA works out of the box with xrandr<br />
<br />
in order to prevent problems when switching to console or when unplugging the external monitor, make sure to specify the frequency along with the mode, for example :<br />
<br />
xrandr --output VGA --mode 1280x1024 --rate 60<br />
<br />
Dual head positioning works also perfectly : [[Xorg#Multi-monitor_setups]]<br />
<br />
===Tweaks===<br />
Are there any?<br />
<br />
==Audio==<br />
The audio device is an Intel HD and should work without modifications. One user reported that he had to disable every snd module in his rc.conf except for two: snd_hda_intel and snd_pcm_oss.<br />
<br />
the speakers don't mute when you plug in headphones, you need to compile alsa (i use v1.0.18a ,[ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.18a.tar.bz2 here]) <br />
<br />
Extract the tar.bz2 and open a console on alsa source folder<br />
<br />
1.execute this command : ./configure --with-cards=hda-intel --with-oss=yes --with-sequencer=yes<br />
2.execute this command : make<br />
3.execute this command : sudo make install<br />
4.get alsa-utils with pacman<br />
5.configure sound volume with alsamixer , reboot , and enjoy :)<br />
<br />
==Suspend and Hibernate==<br />
If you want to use Suspend to Ram using [[pm-utils]] you'll need the following command to resume properly:<br />
pm-suspend --quirk-vbestate-restore<br />
<br />
''Note:'' Pm-suspend should work correctly without any quirks at the moment.<br />
<br />
You can use this command not only to suspend from terminal but also in combination with [[acpid]]<br />
<br />
If after closing the lid your machine doesn't wake up from suspend correctly and needs to be resumed multiple times, you can try using the following workaround. This is an excerpt from /etc/acpid/handler.sh file:<br />
button/lid)<br />
if [ `/bin/awk '{print $2}' /proc/acpi/button/lid/LID0/state` = closed ]; then<br />
/usr/sbin/pm-suspend<br />
fi<br />
;;<br />
<br />
In contrast hibernate works without "modifications" (except the ones mentioned in the [[pm-utils|pm-utils article]]).<br />
<br />
==Fn Keys==<br />
You need at least kernel 2.6.28.4 to get the Fn keys to work correctly.<br />
<br />
(Volume Controls worked out of the box in kdemod 4.2)<br />
<br />
To bind the Fn keys to action, read [[Extra_Keyboard_Keys#The_quick_way]] and also [[Extra_Keyboard_Keys_in_Xorg#Using_your_Desktop_Environment_tools|Extra Keyboard Keys in Xorg]]<br />
<br />
As an example, here is how to bind the keys for volume control :<br />
<br />
1) install xbindkeys (and xbacklight for brightness controlls):<br />
pacman -S xbindkeys xbacklight<br />
<br />
2) crate a config file in your home directory :<br />
vi .xbindkeysrc<br />
<br />
3) with the following content :<br />
"amixer sset Master 2+ &"<br />
m:0x0 + c:176<br />
"amixer sset Master 2- &"<br />
m:0x0 + c:174<br />
#"amixer sset Master 0 &"<br />
"amixer sset Master toggle &"<br />
m:0x0 + c:160<br />
#"sudo pm-suspend"<br />
# m:0x0 + c:223<br />
"xbacklight +10"<br />
m:0x0 + c:233<br />
"xbacklight -10"<br />
m:0x0 + c:232<br />
<br />
4) run xbindkeys :<br />
xbindkeys<br />
and volume control should work within an X session !<br />
<br />
to add aditional bindings, you can get the codes of most of the Fn-keys with <br />
xbindkeys -k<br />
<br />
For the keys that are not recongnized, see <br />
dmesg |tail<br />
to make the kernel recognize them.<br />
<br />
(If your Screen is not bright enough, boot into Windows and set the Brightness to maximum)<br />
<br />
(you can adjust Brightness during the boot process without returning into Windows)<br />
<br />
==Saving Power==<br />
Needs to be written</div>Fox074https://wiki.archlinux.org/index.php?title=Samsung_NC10&diff=63905Samsung NC102009-03-04T14:47:31Z<p>Fox074: </p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:Getting and installing Arch (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{stub}}<br />
<br />
=Introduction=<br />
This article aims on providing the informations on installing and setting up Arch Linux on the Samsung NC10.<br />
<br />
A lot of the information is derived from the [http://bbs.archlinux.org/viewtopic.php?id=58117 Arch Forum] and several hints scattered around in the ArchWiki.<br />
<br />
=Installation=<br />
<br />
As all other netbooks the NC10 doesn't have an optical drive so you have to install Arch Linux either through an [[Install_from_USB_stick|USB pen drive]] or via an external USB CD-ROM drive.<br />
<br />
Before you can start the process of installation you have to disable acpi. <br />
To do so edit the bootline by pressing '''e''' in the GRUB menu. Then append<br />
acpi=off<br />
to the kernel line. This is only for installation - once arch is installed you don't need the option anymore.<br />
<br />
The installation itself is pretty much straightforward and you can use the [[Beginners_Guide]] if you need detailed informations.<br />
<br />
=Configure your installation=<br />
==Network==<br />
With the kernel version >=2.6.27 both, LAN and WLAN work out-of-the-box.<br />
<br />
For LAN the module sky2 is used. The Atheros AR242x wireless chipset uses the module ath5k. To avoid conflicts you should blackmask the other wifi modules:<br />
* ath_hal<br />
* ath_pci<br />
* wlan<br />
<br />
==Video==<br />
The Video controller is a typical Intel chipset that works with the xf86-video-intel driver.<br />
<br />
To save some interrupts and therefore power you can disable dri in your xorg.conf. This disables 3D effects but if you don't need them this could be an option.<br />
Section "Device"<br />
Option "NoDRI"<br />
Identifier "Card0"<br />
Driver "intel"<br />
VendorName "Intel Corporation"<br />
BoardName "Mobile 945GME Express Integrated Graphics Controller"<br />
BusID "PCI:0:2:0"<br />
EndSection<br />
<br />
===External VGA===<br />
External VGA works out of the box with xrandr<br />
<br />
in order to prevent problems when switching to console or when unplugging the external monitor, make sure to specify the frequency along with the mode, for example :<br />
<br />
xrandr --output VGA --mode 1280x1024 --rate 60<br />
<br />
Dual head positioning works also perfectly : [[Xorg#Multi-monitor_setups]]<br />
<br />
===Tweaks===<br />
Are there any?<br />
<br />
==Audio==<br />
The audio device is an Intel HD and should work without modifications. One user reported that he had to disable every snd module in his rc.conf except for two: snd_hda_intel and snd_pcm_oss.<br />
<br />
the speakers don't mute when you plug in headphones, you need to compile alsa (i use v1.0.18a ,[ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.18a.tar.bz2 here]) <br />
<br />
Extract the tar.bz2 and open a console on alsa source folder<br />
<br />
1.execute this command : ./configure --with-cards=hda-intel --with-oss=yes --with-sequencer=yes<br />
2.execute this command : make<br />
3.execute this command : sudo make install<br />
4.get alsa-utils with pacman<br />
5.configure sound volume with alsamixer , reboot , and enjoy :)<br />
<br />
==Suspend and Hibernate==<br />
If you want to use Suspend to Ram using [[pm-utils]] you'll need the following command to resume properly:<br />
pm-suspend --quirk-vbestate-restore<br />
<br />
''Note:'' Pm-suspend should work correctly without any quirks at the moment.<br />
<br />
You can use this command not only to suspend from terminal but also in combination with [[acpid]]<br />
<br />
If after closing the lid your machine doesn't wake up from suspend correctly and needs to be resumed multiple times, you can try using the following workaround. This is an excerpt from /etc/acpid/handler.sh file:<br />
button/lid)<br />
if [ `/bin/awk '{print $2}' /proc/acpi/button/lid/LID0/state` = closed ]; then<br />
/usr/sbin/pm-suspend<br />
fi<br />
;;<br />
<br />
In contrast hibernate works without "modifications" (except the ones mentioned in the [[pm-utils|pm-utils article]]).<br />
<br />
==Fn Keys==<br />
You need at least kernel 2.6.28.4 to get the Fn keys to work correctly.<br />
<br />
(Volume Controls worked out of the box in kdemod 4.2)<br />
<br />
To bind the Fn keys to action, read [[Extra_Keyboard_Keys#The_quick_way]] and also [[Extra_Keyboard_Keys_in_Xorg#Using_your_Desktop_Environment_tools|Extra Keyboard Keys in Xorg]]<br />
<br />
As an example, here is how to bind the keys for volume control :<br />
<br />
1) install xbindkeys (and xbacklight for brightness controlls):<br />
pacman -S xbindkeys xbacklight<br />
<br />
2) crate a config file in your home directory :<br />
vi .xbindkeysrc<br />
<br />
3) with the following content :<br />
"amixer sset Master 2+ &"<br />
m:0x0 + c:176<br />
"amixer sset Master 2- &"<br />
m:0x0 + c:174<br />
#"amixer sset Master 0 &"<br />
"amixer sset Master toggle &"<br />
m:0x0 + c:160<br />
#"sudo pm-suspend"<br />
# m:0x0 + c:223<br />
"xbacklight +10"<br />
m:0x0 + c:233<br />
"xbacklight -10"<br />
m:0x0 + c:232<br />
<br />
4) run xbindkeys :<br />
xbindkeys<br />
and volume control should work within an X session !<br />
<br />
to add aditional bindings, you can get the codes of most of the Fn-keys with <br />
xbindkeys -k<br />
<br />
For the keys that are not recongnized, see <br />
dmesg |tail<br />
to make the kernel recognize them.<br />
<br />
(If your Screen is not bright enough, boot into Windows and set the Brightness to maximum)<br />
(you can adjust Brightness during the boot process without returning into Windows)<br />
<br />
==Saving Power==<br />
Needs to be written</div>Fox074