Quick Edit a Wiki PageTikiwiki AssistantThank you for installing Tikiwiki!
Impressum
|
Blog: sony-vaio-z-series
Description: Skripts and tips about how to run Linux on Sony Vaio Z-Series laptops
Created by ernolf
Last post Sun 06 of Dec., 2009 18:41 CET (2 Posts | 20791 Visits | Activity=2.00) Setup the microphone under Ubuntu Karmic
Setup the microphoneMeanwhile this became obsolete since the microphone simply works out of the box with newest kernel and alsa/asound >=1.0.20. which amixer >/dev/null || sudo apt-get install alsa-utils Next, open gnome-session-properties (as normal user, not as root): gnome-session-properties and add this command to the autostart list: Name: Fix Microphone Input after the next boot, the microphone should work. © Raphael Gradenwitz Share this page: The content on this page is licensed under the terms of the CreativeCommons .
Switching between intel and nvidia graphic chip with Debian or Ubuntu Linux
Switching Intel <=> nVidia
The goal:.. of this How-To is to setup a system where one only have to switch the °STAMINA <=> SPEED° slider before a (re)boot, without any other steps needed to be done. The System will boot with only one of both graphic chips activated (intel in stamina-, nvidia in speed-mode). The respectively other one will be powered off by acpi. Prerequisites:
The Kernel Commandline:Deprecated (only Kernel <= 2.6.31-11-generic): to make the backlight Fn-keys (Fn-F5 and Fn-F6) as well as the Brightness Applet working (Intel only), try to add "acpi_backlight=vendor" to the kernel command line. To make the acpi work like set with the °STAMINA <=> SPEED° switch, add acpi_osi="!Windows 2006" to the kernel command line. This will set the _OSI section of the DSDT table, (a file located in a hardware eeprom) and force the ACPI not to uninitialize it at shutdown (like acpi_osi="Windows 2006" (=Vista) or acpi_osi=Linux would do) to make it on next boot do its job. If you use grub2, add to /etc/default/grub: GRUB_CMDLINE_LINUX="acpi_osi=\\\"!Windows 2006\\\"" .. and run sudo update-grub to create a new /boot/grub/grub.cfg Deprecated (Only if you still use grub (legacy) as bootmanager):
NOTE: before the nvidia driver from your distribution can be installed, acpi_osi="!Windows 2006" should not be added (you can simply remove it, press 'e' in the grub shell, see below next indention) since it will hide the nvidia hardware (makes it invisible for lspci) which makes driver installation with the jockey script impossible. If you want to install the driver directly from the nvidia ftp-server (the janitor script will give you that choice) the acpi_osi="!Windows 2006" can - no - should be active. In both cases you should run the janitor script in stamina mode when you want to install the nvidia driver. Edit the Kernel Commandline in the Grub-Shell:In the Grub Shell, directly after booting the Vaio-Z, you can edit the highlighted Kernel by pressing 'e', then you can manually remove the acpi_osi="!Windows 2006" (there the quotes are escaped like this: acpi_osi=\"!Windows 2006\"). That will change the acpi in the Session after the next boot. YOU MUST REBOOT TWICE FOR acpi_osi="!Windows 2006" (or its removal) TO TAKE EFFECT. Install and maintain with the sony-VGN-Zseries-janitor browse source script:If you meet the above eligibility, this script can/will do an almost complete installation: Install the file sony-VGN-Zseries-janitor browse source : sudo wget -NP /usr/local/bin/ http://global-social.net/files/sony-VGN-Zseries-janitor .. make it executable: sudo chmod 0755 /usr/local/bin/sony-VGN-Zseries-janitor .. and run it (as normal User): sony-VGN-Zseries-janitor ..this will popup for gksudo and run verbose in an xterm-window, providing information about what it exactly does. That will ascertain that everything is on its right place. It installs/upgrades:
To make a complicated xorg.conf-file unnecessary (after nvidia installation is ready and everything is running well) one can use nvidia-settings as root (sudo nvidia-settings) or as normal user, make the settings you want and then save them in an rc-file. Now enter the path to this rc-file into /etc/default/switch-x-to Special sony-laptop kernel module:NOTE: this step (kernel-module installation and upgrading) is automated with the sony-VGN-Zseries-janitor script. We need a 'sony_laptop' module that is a little bit different from the vanilla module shipped with the distribution: sony-laptop-zseries-0.9np5.tar.gz thanks to Norbert Preining for maintaining this: Norbert Preining's Software projects build it with dkms which auto-build the module after each kernel update. If you don't use the sony-VGN-Zseries-janitor script, here the steps to be done:
It must be loaded with "options sony-laptop speed_stamina=3". The following lines will ensure this option is added at the right place if not yet done before. NOTE: this step is automated with the sony-VGN-Zseries-janitor script. If you don't use the sony-VGN-Zseries-janitor script, here the steps to be done: First run sudo -i to get root: sudo -i Now copy and paste this 4 lines of code in the root-shell: oi='false'; o='options sony-laptop speed_stamina=3' Exit from root-shell: exit Tuning the intel driver acceleration (optional):The intel-driver is extremely fast since Kernel-Mode-Setting is enabled by default (which is since kernel 2.6.30-10.12). You can try additional the new uxa acceleration (the successor from the exa- and even older xaa-acceleration):
Section "Device" Note: The new X server on Karmic doesn't need an xorg.conf file anymore rather gathering the devices with dbus. It may be (still) installed if your Karmic is an upgrade from Jaunty. You can build your own though if you need it or want to add something like these acceleration experiments. If it is present, it wil be parsed. Make sure everything is running well. The acceleration should be enough to activate all visual effects like Compiz-Fusion. You can mesure the speed (in frames per ± 5,0 seconds) for 2D/3D-Animation with glxgears and gather informations about OpenGL with sudo glxinfo. Rename xorg.conf for intel:If you want to use an xorg.conf for the intel graphics chip, then you now have to rename it xorg.conf.INTEL, simply run: sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.INTEL If you install fresh with or without the sony-VGN-Zseries-janitor script, you should NOT (yet) create an xorg.conf.INTEL file. That ensures that the intel chip can run without (eventually wrong) xorg.conf since intel does not nead an xorg.conf. A wrong xorg.conf.INTEL is a usual reason for a black screen after booting. Some people don't understand this mechanism and think, they have started the 'Z' in speed mode but it is in truth not in speed mode. In this case it is important to NOT have an xorg.conf.INTEL file. Install the nvidia driver:NOTE: this step (nvidia driver installation) is done automated with the sony-VGN-Zseries-janitor script. If you don't use the sony-VGN-Zseries-janitor script, here the steps to be done: Install the packages nvidia-common jockey-gtk and nvidia-settings: sudo apt-get install nvidia-common jockey-gtk nvidia-settings .. run /usr/bin/jockey-gtk, 'activate' the newest available nvidia driver and .. backup xorg.conf for nvidia:NOTE: this step (nvidia xorg.conf maintainance) is completely automated with the sony-VGN-Zseries-janitor script. If you don't use the sony-VGN-Zseries-janitor script or wants to understand what it does, here the steps to be done: For the nvidia driver an xorg.conf file is needed. The jockey (jockey-gtk) script will create and install it without need to interact from your side. Option "NoLogo" "True" .. and comment it out with a '#': # Option "NoLogo" "True" .. that makes the nvidia logo appear for a couple of seconds on startup if everything was loaded right. The last step is to rename this xorg.conf into xorg.conf.NVIDIA: sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.NVIDIA LCD brightness controll with the acpi_create_nv_event script browse source :NOTE: this script will be installed, maintained and executed by the sony-VGN-Zseries-janitor script (see above). Finally, for the intel gpu the Fn-F5 and Fn-F6 key combinations to increase or decrease the brightness work out of the box. For the nvidia gpu a different acpi-method is used. To make these keys do this under nvidia as well and if you don't use the sony-VGN-Zseries-janitor script or wants to understand what it does, here the steps to be done: Install 'smartdimmer' and 'nvclock': sudo apt-get install nvclock create the sony-lapto share dir (if not yet exists): sudo mkdir -p /usr/share/sony-laptop/ and download the script /usr/share/sony-laptop/acpi_create_nv_event browse source : sudo wget -NP /usr/share/sony-laptop/ http://global-social.net/files/acpi_create_nv_event .. create symlink /usr/local/bin/acpi_create_nv_event: sudo ln -sf ../../share/sony-laptop/acpi_create_nv_event /usr/local/bin/acpi_create_nv_event .. make it executable: sudo chmod +x /usr/share/sony-laptop/acpi_create_nv_event .. and run it: sudo acpi_create_nv_event that script will find out interactively on what acpi-event the brightness-up respectively brightness-down should be assigned and do everything for you. After running that script, you will be able to change nvidia brightness with the Fn-Key combinations. © Raphael Gradenwitz PS: I am Dutch, living in Germany; for me English is a foreign language. If you get disturbed by my spelling mistakes or literal errors, please feel free to send me your corrections. Thanks! Share this page: The content on this page is licensed under the terms of the CreativeCommons .
|
LoginGoogle SearchQuery WhoisShoutbox
tester
xawer
xawer
Anonymous, 16:36 CEST, Fri 03 of Oct., 2008:
wundervolle Bilder,xawer!!!HUT ab!!
xawer
ernolf
Google AdSense |