特殊:Badtitle/NS100:NC20
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/NC20 }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/af | • {{#if: UbuntuHelp:NC20|Afrikaans| [[::NC20/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/ar | • {{#if: UbuntuHelp:NC20|العربية| [[::NC20/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/az | • {{#if: UbuntuHelp:NC20|azərbaycanca| [[::NC20/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/bcc | • {{#if: UbuntuHelp:NC20|جهلسری بلوچی| [[::NC20/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/bg | • {{#if: UbuntuHelp:NC20|български| [[::NC20/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/br | • {{#if: UbuntuHelp:NC20|brezhoneg| [[::NC20/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/ca | • {{#if: UbuntuHelp:NC20|català| [[::NC20/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/cs | • {{#if: UbuntuHelp:NC20|čeština| [[::NC20/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/de | • {{#if: UbuntuHelp:NC20|Deutsch| [[::NC20/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/el | • {{#if: UbuntuHelp:NC20|Ελληνικά| [[::NC20/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/es | • {{#if: UbuntuHelp:NC20|español| [[::NC20/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/fa | • {{#if: UbuntuHelp:NC20|فارسی| [[::NC20/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/fi | • {{#if: UbuntuHelp:NC20|suomi| [[::NC20/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/fr | • {{#if: UbuntuHelp:NC20|français| [[::NC20/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/gu | • {{#if: UbuntuHelp:NC20|ગુજરાતી| [[::NC20/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/he | • {{#if: UbuntuHelp:NC20|עברית| [[::NC20/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/hu | • {{#if: UbuntuHelp:NC20|magyar| [[::NC20/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/id | • {{#if: UbuntuHelp:NC20|Bahasa Indonesia| [[::NC20/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/it | • {{#if: UbuntuHelp:NC20|italiano| [[::NC20/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/ja | • {{#if: UbuntuHelp:NC20|日本語| [[::NC20/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/ko | • {{#if: UbuntuHelp:NC20|한국어| [[::NC20/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/ksh | • {{#if: UbuntuHelp:NC20|Ripoarisch| [[::NC20/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/mr | • {{#if: UbuntuHelp:NC20|मराठी| [[::NC20/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/ms | • {{#if: UbuntuHelp:NC20|Bahasa Melayu| [[::NC20/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/nl | • {{#if: UbuntuHelp:NC20|Nederlands| [[::NC20/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/no | • {{#if: UbuntuHelp:NC20|norsk| [[::NC20/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/oc | • {{#if: UbuntuHelp:NC20|occitan| [[::NC20/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/pl | • {{#if: UbuntuHelp:NC20|polski| [[::NC20/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/pt | • {{#if: UbuntuHelp:NC20|português| [[::NC20/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/ro | • {{#if: UbuntuHelp:NC20|română| [[::NC20/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/ru | • {{#if: UbuntuHelp:NC20|русский| [[::NC20/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/si | • {{#if: UbuntuHelp:NC20|සිංහල| [[::NC20/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/sq | • {{#if: UbuntuHelp:NC20|shqip| [[::NC20/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/sr | • {{#if: UbuntuHelp:NC20|српски / srpski| [[::NC20/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/sv | • {{#if: UbuntuHelp:NC20|svenska| [[::NC20/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/th | • {{#if: UbuntuHelp:NC20|ไทย| [[::NC20/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/tr | • {{#if: UbuntuHelp:NC20|Türkçe| [[::NC20/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/vi | • {{#if: UbuntuHelp:NC20|Tiếng Việt| [[::NC20/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/yue | • {{#if: UbuntuHelp:NC20|粵語| [[::NC20/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/zh | • {{#if: UbuntuHelp:NC20|中文| [[::NC20/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/zh-hans | • {{#if: UbuntuHelp:NC20|中文(简体)| [[::NC20/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NC20 | UbuntuHelp:NC20 | {{#if: | :}}NC20}}/zh-hant | • {{#if: UbuntuHelp:NC20|中文(繁體)| [[::NC20/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:NC20|:NC20|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :NC20/zh | | {{#ifexist: NC20/zh | | {{#ifeq: {{#titleparts:NC20|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:NC20|1|-1|}} | zh | | }}
Jaunty Jackelope on the Samsung NC20
Support Status
Full: 'out of the box':
- Wired networking
- USB
- Webcam
- Bluetooth
- Suspend / resume
- Audio playback
Partial: after driver/kernel updates
- Video
- Wireless networking
- Microphone
- Fn Brightness keys
- Via padlock hardware security
- CPU Frequency Scaling
- Wi-Fi On / off switch
- SD Card reader
Not functional / Unverified:
- Fn Buttons (Monitor switching, Screen on/off toggle)
- Multi-touch
Video / Graphics
When you try to run the live cd the graphical login will not work and you'll need to [[UbuntuHelp:[openchrome_svn|build the OpenChrome driver]]] from svn or [[UbuntuHelp:[openchrome_debian|install a working package]]] from the Debian distribution <<Anchor(openchrome_svn)>>
Build from SVN
The following instructions are taken from the OpenChrome|wiki entry. * Firstly get the required build tools
sudo apt-get install build-essential subversion autoconf automake1.9 libtool
* Next you need to get the build dependencies
sudo apt-get build-dep xserver-xorg-video-openchrome
* Get the driver's sourcecode
svn checkout http://svn.openchrome.org/svn/trunk openchrome
* Change into the newly created directory
cd openchrome
* Run autogen to set up the driver build
./autogen.sh --prefix=/usr
* Compile openChrome
make
* Install openChrome
sudo make install
* Edit the Xorg configuration You can use the nano editor or any command line editor that you are comfortable with to make the changes
sudo nano /etc/X11/xorg.conf
This is my configuration which is minimal but gives the full 1280*800 resolution with 32-bit colour. The key settings are specifying the openchrome driver and the activedevice option.
Section "Device" Identifier "Configured Video Device" Driver "openchrome" Option "ActiveDevice" "LCD,CRT" EndSection Section "Monitor" Identifier "Configured Monitor" EndSection Section "Screen" Identifier "Default Screen" Monitor "Configured Monitor" Device "Configured Video Device" EndSection
* Restart GDM and install Ubuntu. You will need to restart GDM so that you can install Ubuntu. After installing the driver will need to be installed in the same way again or else you could try copying the openchrome directory to removable media and run make install on it after the reboot. To restart GDM and begin installation run this command
sudo /etc/init.d/gdm restart
<<Anchor(openchrome_debian)>>
Install from Debian package
It is possible that the current driver sourcecode from svn be broken, in which case X might not start properly. Debian has currently, as of May 8 2009, a more recent version of the openchrome driver, svn741, which seems to work fine with this laptop. You can download a copy of it from http://packages.ubuntu.com/karmic/xserver-xorg-video-openchrome which is the package for Ubuntu Karmic or from http://packages.debian.org/search?keywords=xserver-xorg-video-openchrome by choosing the package for the sid version of Debian. Download the file and install it with a command like
dpkg -i xserver-xorg-video-openchrome_0.2.903+svn741-1_i386.deb
then configure the xorg.conf as described before and you should have a working graphical interface.
External monitor
By adding to the xorg.conf file the option
Option "ActiveDevice" "LCD,CRT"
the external output works just fine in clone mode, that is, you see in the second screen the same display you see on your laptop. Your external monitor might not accept the same resolution of your laptop though. If this is the case, the following command might help:
xrandr --output default --mode 1280x720
which will change the resolution of the display to one which should work with any HDTV. To revert the resolution back, just run
xrandr --output default --mode 1280x800
You can make these changes from your display manager, but you might find convenient to make some alias to access them quickly.
Touchpad (HAL)
This is a sample touchpad configuration for hal. The configuration file can be located here:
/usr/share/hal/fdi/policy/20thirdparty/11-x11-synaptics.fdi
The configuration enables shmconfig, scroll coasting and palm detect amongst others.
<?xml version="1.0" encoding="ISO-8859-1"?> <deviceinfo version="0.2"> <device> <match key="info.capabilities" contains="input.touchpad"> <match key="info.product" contains="Synaptics TouchPad"> <merge key="input.x11_driver" type="string">synaptics</merge> <merge key="input.x11_options.SHMConfig" type="string">True</merge> <merge key="input.x11_options.LeftEdge" type="string">1632</merge> <merge key="input.x11_options.RightEdge" type="string">5312</merge> <merge key="input.x11_options.TopEdge" type="string">1575</merge> <merge key="input.x11_options.BottomEdge" type="string">4281</merge> <merge key="input.x11_options.MinSpeed" type="string">0.1</merge> <merge key="input.x11_options.MaxSpeed" type="string">0.75</merge> <merge key="input.x11_options.AccelFactor" type="string">0.004</merge> <merge key="input.x11_options.PalmDetect" type="string">1</merge> <merge key="input.x11_options.PalmMinWidth" type="string">5</merge> <merge key="input.x11_options.PalmMinZ" type="string">190</merge> <merge key="input.x11_options.CoastingSpeed" type="string">6.0</merge> <merge key="input.x11_options.VertScrollDelta" type="string">300</merge> </match> </match> </device> </deviceinfo>
Function Keys
Brightness
Needs two actions to fix. Firstly you must enable hal to recognise the nc20 and then you must verify that your kernel contains the patch that was submitted to fix the brightness keys. 1. Hal You need to edit the following file:
/usr/share/hal/fdi/information/10freedesktop/30-keymap-misc.fdi
Find the section that looks like this:
<match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="NC10;SP55S;SQ45S70S;SX60P;SX30S;R59P/R60P/R61P;Q210;Q310;X05">
And add NC20;
so that it looks like:
<match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="NC10;NC20;SP55S;SQ45S70S;SX60P;SX30S;R59P/R60P/R61P;Q210;Q310;X05">
There is a bug raised against hal-info at the moment so this may or may not be fixed when you look at the file. 2. Kernel Patch There was a bug in the linux kernel that meant that the function keys repeated infinitely. This has been incorporated into the 2.6.28-12 kernel in Jaunty. This kernel is in proposed as of <<Date(2009-05-03T20:30:16-0135)>> It should be in the mainline 2.6.30 kernel.
Wireless
This is one method and I'm not sure if it is the right thing to do but it works and you get the new notifications that come with Jaunty. Please note that you must have the nc20 added to hal as described above and you need to be running kernel 2.6.28-12 or later 1. Set up the key bindings The following commands alias the XF86WLAN that is generated by the FN+F9 key combination and link it to the /etc/acpi/wireless.sh script that is already present.
gconftool-2 -s --type string /apps/metacity/keybinding_commands/command_1 'sudo /etc/acpi/wireless.sh' gconftool-2 -s --type string /apps/metacity/global_keybindings/run_command_1 XF86WLAN
2. Allow permissions... By default you would not be allowed to run the wireless.sh script without using sudo or gksudo and providing a password. To allow access to the script you have to create a rule in the sudoers file.
- Open the sudoers file for editing. By default nano will be the editor that will open
sudo visudo
- Look for the following heading
# Cmnd alias specification
- Add this line underneath
Cmnd_Alias WLANTOGGLE=/etc/acpi/wireless.sh
- Add this line at the very bottom. It allows access to the script with no password.
%admin ALL=(ALL) NOPASSWD: WLANTOGGLE
Keys that work by default
Fn+F1 suspends to RAM out of the box Fn+F2 shows battery status in Gnome. Fn+Left (volume down) and Fn+Right (volume up) work out of the box. Fn+F6 (mute) works out of the box Fn+F10 enables or disables the touchpad out of the box.
Via Padlock
CPU Frequency Scaling
Not enabled by default but the kernel module is present. Simply add the module name to your /etc/modules file:
e_powersaver
After this you must reboot or load the module manually if you don't want to reboot straight away:
sudo modprobe e_powersaver
You can verify that this is working by adding the cpu frequency monitor applet to a gnome panel. Right-click on a panel, select 'Add to Panel' and finally select 'CPU Frequency Scaling Monitor'. The processor will vary from 851MHz to 1.7GHz.
Microphone
Does not work out of the box but it fixed with Alsa version 1.0.20. After ALSA is installed select 'Mic' as the input source in the gnome volume control application. It has been confirmed that only the driver needs to be upgraded to 1.0.20 for the microphone to function. These instructions|for the NC10 can be used as a guide to update the driver alone. Alternatively, there is a handy script available here that supports an auto-upgrade to 1.0.20 as of <<Date(2009-05-10T20:35:15-0135)>> This method will also update all of the other Alsa components. The command you need is the following where x.xx is the current revision of the script.
sudo AlsaUpgrade-1.0.x-rev-x.xx.sh -di
SD / MMC Card Reader
This fix should be considered as a preview or unstable version of what will most likely be incorporated into a future Linux kernel. I pulled the source out of a patch that was posted to the kernel mailing list by a VIA employee.
- You will need to have the following packages installed to implement this fix
sudo apt-get install build-essential linux-headers-`uname -r`
- Next, download the module source and makefile
- Compile and install the kernel module
1. Extract the files in the archive
tar zxf via-sdmmc.tar.gz && cd via-sdmmc
2. Compile the module
make
If you don't see any errors then you can install the module 3. Install the module
sudo make install
4. Test the module
sudo modprobe via-sdmmc
If all went ok then you can just insert a memory card and it should be auto mounted. 5. Set the module to autoload at startup.
If you want the card reader to be enabled automatically at startup you need to tell Ubuntu to load the module during the boot process. You can do this by adding the modle name to the /etc/modules file. Open that file with a text editor e.g.
sudo nano /etc/modules
and add the name of the module at the end of the file
via-sdmmc
External Resources / Handy Links
NC20 thread on Ubuntu Forums - Contains a wealth of information and is the source for much of this wiki entry.