Linux.SonyVaio History
Hide minor edits - Show changes to markup
Now the problem is these utilities by themselves don't do much, in particular sonypid
is pretty useless on this Vaio, unless I missing something and someone can tell me how to make it do anything useful on my model.\\
Now the problem is these utilities by themselves don't do much, in particular sonypid
is pretty useless on this Vaio, unless I am missing something and someone can tell me how to make it do anything useful on my model.\\
Not particularly elegant, but effective for now. If I have more time and the inclinaison to to better, I'll post it here in a future update.
Not particularly elegant, but effective for now. If I have more time and the incentive to to better, I'll post it here in a future update.
http://www.linux-on-laptops.com/images/button2.gif
http://www.linux-on-laptops.com/images/button2.gif
(:comments:)
The following relates installation of Fedora Core 3 on a Sony Vaio VGN-A170P laptop. This should work on most of the laptops from the VGN-A* series as they are basically variations on the same core.
Just make a standard install, be carefull not to install over your existing Windwos partitions and to avoid touching the first partition of your drive which contains the recovery data for your laptop.
Just make a standard install, be carefull not to install over your existing Windows partitions and to avoid touching the first partition of your drive which contains the recovery data for your laptop.
The default txextmode display used by teh kernel when you boot is horrendous: doesn't cut it at all on such a beautiful machine capabable of so much more.
To switch to something a lot more confortable, add the following lines to your /etc/rc.d/rc.local
file:
The default textmode display used by the kernel when you boot is horrendous: doesn't cut it at all on such a beautiful machine capabable of so much more.
To switch to something a lot more comfortable, add the following lines to your /etc/rc.d/rc.local
file:
Note: you will still boot in the default textmode until all the services are loaded. To make the kernel switch to the ATI framebuffer we would need to recompile that support into the kernel rather than being an external module. You would then be able to add a simple video=radeonfb
parameter to the kernel boot. However, I tend to avoid having to recompile kernels these days: you would have to recompile it everytime you want to update your system with a new kernel, and that's plainly not something worth spendingthat much time on.
Note: you will still boot in the default textmode until all the services are loaded. To make the kernel switch to the ATI framebuffer we would need to recompile that support into the kernel rather than being an external module. You would then be able to add a simple video=radeonfb
parameter to the kernel boot. However, I tend to avoid having to recompile kernels these days: you would have to recompile it everytime you want to update your system with a new kernel, and that's plainly not something worth spending that much time on.
- reboot or log-off and you should now be able to access the new fonts from all appliactions that use them.
- reboot or log-off and you should now be able to access the new fonts from all applications that use them.
[dag]
Note: Don't forget the “““&
“““ to make the script run in the background.
Note: Don't forget the &
to make the script run in the background.
Note: Don't forget the “““&“““
to make the script run in the background.
Note: Don't forget the “““&
“““ to make the script run in the background.
Now the problem is these utilities by themselves don do much, in particular sonypid
is not doing much at all, unless I missing something and someone can tell me how to make it do anything useful on my Vaio.
The thing is that once loaded, the sonypi
kernel module will send events that can be collected simply by reading the /dev/sonypi
device.
Now the problem is these utilities by themselves don't do much, in particular sonypid
is pretty useless on this Vaio, unless I missing something and someone can tell me how to make it do anything useful on my model.
The thing to know is that once loaded, the sonypi
kernel module will send events that can be collected simply by reading the /dev/sonypi
device.
Kevin J. Smith has a few more information on his Sony Vaio page, but doing as he said would do nothin for me, so I rolled a very quick and very dirty script to load at boot and control the basic stuff:
Kevin J. Smith has a few more information on his Sony Vaio page, but doing as he said would do nothing for me, so I rolled a very quick and very dirty script to load at boot and control the basic stuff:
And that's it. Thr Mute button doesn't need the sonypi
module to work properly, and the other volume control, adaptive brightness button and special buttons all report the same event code through sonypi
, which make them pretty useless.
And that's it. The Mute button doesn't need the sonypi
module to work properly, and the other volume control, adaptive brightness button and special buttons all report the same event code through sonypi
, which make them pretty useless.
Anyway, just copy the following into a file dosonystuff
:
Anyway, just copy the following into a file sonystuff
:
chmod 755 dosonystuff mv dosonystuff /usr/bin
chmod 755 sonystuff mv sonystuff /usr/bin
/usr/bin/dosonystuff > /dev/null &
/usr/bin/sonystuff > /dev/null &
Note: Don't forget the &
to make the script run in the background.
Note: Don't forget the “““&“““
to make the script run in the background.
Just make a standard install, be carefull not to install over your existing Windwos partitions and to avoid touching the first partition of you drive which contains the recovery data for your laptop.
Just make a standard install, be carefull not to install over your existing Windwos partitions and to avoid touching the first partition of your drive which contains the recovery data for your laptop.
- Change the birghtness setting and save it
- Change the brightness setting and save it
After acquiring on of the superb Vaio VGN series laptop, with its wondrous 17" 1920x1200 ultrabright display, I decided to install Fedora on a partition to coexist with the original WindowsXP.
After acquiring one of the superb Vaio VGN series laptop, with its wondrous 17" 1920x1200 ultrabright display, I decided to install Fedora on a partition to coexist with the original WindowsXP.
I'm trying to cut down on my dependency on Windows software, and as I preach for a greater use of Linux and OSS in the business world, I have to do as I say. I can't get rid of Windows totally as I still rely on some software and programming environment such as VisualStudio to build Win32 and .Net applications, and on software like CorelDraw! that have not yet crossed over well enough to be used in a production environment.
I'm trying to cut down on my dependency on Windows software, and as I preach for a greater use of Linux and OSS in the business world, I have to do as I say.
I can't get rid of Windows totally as I still rely on some software and programming environment such as VisualStudio to build Win32 and .Net applications, and on software like CorelDraw! that have not yet crossed over well enough to be used in a production environment.
my $settingfile = '/etc/sonystuff.brightness';
- Get the last brightness setting at boot
`spicctrl -b\`cat $settingfile\`` if -e $settingfile;
- Awaiting events from the sonypi kernel module forever
if ($b==16 && $bright>0) { $bright -= 20; $bright = 0 unless $bright > 0; `spicctrl -b$bright`; } elsif ($b==17 && $bright<255) { $bright += 20; $bright = 255 unless $bright<255; `spicctrl -b$bright`; }
fiatLux($bright - 20) if $b==16; fiatLux($bright + 20) if $b==17
- Change the birghtness setting and save it
sub fiatLux {
my $lux = shift; $lux = 0 unless $lux > 0; $lux = 255 unless $lux < 255; `spicctrl -b$lux; echo $lux > $settingfile`;
}
I told you, this is very quick and dirty.
I told you, this is very quick and dirty, but it will work and save the brightness setting accross reboots.\\
The following relates installation of Fedora Core 3 on a Sony Vaio VGN-A170P laptop. This should work on most of the laptops from the VGN-A* series as they are basically variations on the same core. Attach:sonyvaio.png Δ
The following relates installation of Fedora Core 3 on a Sony Vaio VGN-A170P laptop. This should work on most of the laptops from the VGN-A* series as they are basically variations on the same core.
The following relates installation of Fedora Core 3 on a Sony Vaio VGN-A170P laptop. This should work on most of the laptops from the VGN-A* series as they are basically variations on the same core.
The following relates installation of Fedora Core 3 on a Sony Vaio VGN-A170P laptop. This should work on most of the laptops from the VGN-A* series as they are basically variations on the same core. Attach:sonyvaio.png Δ
[[http://www.linux-on-laptops.com/ http://www.linux-on-laptops.com/images/button2.gif]
http://www.linux-on-laptops.com/ http://www.linux-on-laptops.com/images/button2.gif
http://www.linux-on-laptops.com/images/button2.gif
[[http://www.linux-on-laptops.com/ http://www.linux-on-laptops.com/images/button2.gif]
- http://www.linux-mag.com/content/view/76/2201/ Optimizing Text-Mode Video: article from the january 2005 edition of the excellent Linux Magazine (you should consider subscribing).
- http://www.linux-mag.com/content/view/76/2201/ Optimizing Text-Mode Video: article from the january 2005 edition of the excellent Linux Magazine (you should consider subscribing).
http://www.linux-on-laptops.com/images/button2.gif
And that's it. teh Mute button doesn't needsonypi
to work properly, and the other volume control, adaptive brightness button and special buttons all report the same event code through sonypi
, which make their use pretty useless.
And that's it. Thr Mute button doesn't need the sonypi
module to work properly, and the other volume control, adaptive brightness button and special buttons all report the same event code through sonypi
, which make them pretty useless.
- To Eject the CD tray, type
eject cdrecorder
from a terminal.
- The DVD Recorder should work out of the box.
- I haven't tried Bluetooh yet but it should work without problem. You will find more information in the links below.
- The modem is a windmodem, meaning that in our case it isn't recognised by the system and will probably require some efforts to work. I don't need it right now but I will look into it later and report my finding then.
- http://www.linux-mag.com/content/view/76/2201/ Optimizing Text-Mode Video: article from the january 2005 edition of the excellent Linux Magazine (you should consider subscribing).
- http://www.linux-mag.com/content/view/76/2201/ Optimizing Text-Mode Video: article from the january 2005 edition of the excellent Linux Magazine (you should consider subscribing).
/usr/bin/sonystuff > /dev/null &
/usr/bin/dosonystuff > /dev/null &
Now the problem is these utilities by themselves don do much, in particular sonypid
is not doing much at all, unless I missing something and someone can tell me how to make it do anything useful on my Vaio.
The thing is that once loaded, the sonypi
kernel module will send events that can be collected simply by reading the /dev/sonypi
device.
Kevin J. Smith has a few more information on his Sony Vaio page, but doing as he said would do nothin for me, so I rolled a very quick and very dirty script to load at boot and control the basic stuff:
- eject the CD tray
- adjusting the screen brightness with the Fn-F5 and Fn-F6 keyboard keys.
And that's it. teh Mute button doesn't needsonypi
to work properly, and the other volume control, adaptive brightness button and special buttons all report the same event code through sonypi
, which make their use pretty useless.
Anyway, just copy the following into a file dosonystuff
:
#!/usr/bin/perl -w open SONYPI,"/dev/sonypi"; my $b=""; do { read(SONYPI,$b,1); $b = ord($b); if ($b==27) { `eject cdrecorder`; } elsif ($b==16 || $b==17) { my $bright = `spicctrl -B`; chomp $bright; if ($b==16 && $bright>0) { $bright -= 20; $bright = 0 unless $bright > 0; `spicctrl -b$bright`; } elsif ($b==17 && $bright<255) { $bright += 20; $bright = 255 unless $bright<255; `spicctrl -b$bright`; } } } while(1);
I told you, this is very quick and dirty. Now just make this script executable and load at boot as we did before:
chmod 755 dosonystuff mv dosonystuff /usr/bin
Then call our script from /etc/rc.d/rc.local
by adding the following:
modprobe sonypi /usr/bin/sonystuff > /dev/null &
Note: Don't forget the &
to make the script run in the background.
Not particularly elegant, but effective for now. If I have more time and the inclinaison to to better, I'll post it here in a future update.
The following relates installation of Fedora Core 3 on a Sony Vaio VGN-A170P laptop.
The following relates installation of Fedora Core 3 on a Sony Vaio VGN-A170P laptop. This should work on most of the laptops from the VGN-A* series as they are basically variations on the same core.
Check that Grub will give you a choice of OS when you boot and then choose the packages you want to install. teh rest is a breeze and should not bring any issue.
Check that Grub will give you a choice of OS when you boot and then choose the packages you want to install. grub should be installed on the Master Boot Record (MBR) of the hard drive, /dev/hda
.
The rest is a breeze and should not bring any issue.
Function buttons
Those little buttons that adjust brightness, volume, eject the CD need special software to work. Fortunately, some nice people have done most of the hard work for us:
- Download the
sonypid
abdspicctrl
pagackes from http://popies.net/sonypi/ Stelian Pop's website. - build the RPM packages and install them:
rpmbuild -tb spicctrl-X.Y.tar.bz2 rpmbuilt -tb sonypid-X.Y.tar.bz2 cd /usr/src/redhat/RPMS/i386 rpm -ivh spicctrl-X.Y.i386.rpm rpm -ivh sonypid-X.Y.i386.rpm
- http://www1.cuni.cz/~obo/vaio.html Fedora Core 1 on a Vaio: a bit outdated, but still very useful article.
- :
- http://popies.net/sonypi/ Sony Programmable I/O Control Device Driver: to make those little buttons on your laptop actually do something useful.
- http://rootsmith.ca/vaio-linux.html Linux on a Sony VAIO VGN-A170P Laptop: the original source that helped me setup my system.
- http://www.linux-laptop.net/ Linux on Laptops: the main source for making Linux work on your laptop.
- http://ldp.rtin.bz/HOWTO/Font-HOWTO/fix.html Optimal Use of Fonts on Linux: a How-To to help you fix those ugly fonts.
- http://www.linux-mag.com/content/view/76/2201/ Optimizing Text-Mode Video: article from the january 2005 edition of the excellent Linux Magazine (you should consider subscribing).
Note: after rebooting, you will notice that the wireless network adapter will have been detected and configured automatically as eth1
. You can then use the normal network Configuration tools to set it up, providing you enabled it with the switch on the front of the laptop.
Wireless adapter
Once you have updated your installation with yum as mentionned above, you will notice after rebooting that the wireless network adapter will have been detected and configured automatically as eth1
. You can then use the normal network Configuration tools to set it up, providing you enabled it with the switch on the front of the laptop.
Note: Don't try to set up the wireless before you've up updated your system. It would be hard work for nothing.
Links
- http://www.fedorafaq.org/ The unofficial Fedora FAQ: lots of information on common issues.
- http://dag.wieers.com/home-made/apt/ Dag Wieėrs APT/YUM repository: newer/better packages for your system.
- :
: after rebooting, you will notice that the wireless network adapter will have been detected and configured automatically as eth1
. You can then use the normal network Configuration tools to set it up, providing you enabled it with the switch on the front of the laptop.
Display
Note: after rebooting, you will notice that the wireless network adapter will have been detected and configured automatically as eth1
. You can then use the normal network Configuration tools to set it up, providing you enabled it with the switch on the front of the laptop.
Graphic Display
Don't try to use the official proprietory ATI driver either, it doesn't work well on a laptop it seems.
Don't try to use the official proprietory ATI driver either, it doesn't work well on a laptop it seems.
Textmode Display
The default txextmode display used by teh kernel when you boot is horrendous: doesn't cut it at all on such a beautiful machine capabable of so much more.
To switch to something a lot more confortable, add the following lines to your /etc/rc.d/rc.local
file:
modprobe radeonfb service gpm restart clear
This will load the proper framebuffer kernel module to drive our ATI card to its fullest, and reload the textmode mouse driver to take advantage of our new whooping 240x75 resolution, that's bout 18k of screen space or 9 times the default resolution.
Note: you will still boot in the default textmode until all the services are loaded. To make the kernel switch to the ATI framebuffer we would need to recompile that support into the kernel rather than being an external module. You would then be able to add a simple video=radeonfb
parameter to the kernel boot. However, I tend to avoid having to recompile kernels these days: you would have to recompile it everytime you want to update your system with a new kernel, and that's plainly not something worth spendingthat much time on.
: after rebooting, you will notice that the wireless network adapter will have been detected and configured automatically as eth1
. You can then use the normal network Configuration tools to set it up, providing you enabled it with the switch on the front of the laptop.
Note: don't use the Screen Resolution or Display Config tools found in the Applications menu, they would mess up the config file.
Note: don't use the Screen Resolution or Display Config tools found in the Applications menu, they would mess up the config file.
Don't try to use the official proprietory ATI driver either, it doesn't work well on a laptop it seems.
The following relates installation of Fedora Core 3 on a Vaio VGN-A170P laptop.
The following relates installation of Fedora Core 3 on a Sony Vaio VGN-A170P laptop.
Open a terminal, insert the Fedora Core installation disk and, once the CD/DVD has been mounted, type rpm --import /media/cdrecorder/RPM*
. This will ensure that the digital signatures for the verification of packages are loaded.
Open a terminal, insert the Fedora Core installation disk and, once the CD/DVD has been mounted, type the following to ensure that the digital signatures for the verification of packages are loaded:
# mount cdrecorder # rpm --import /media/cdrecorder/RPM*
Get Dag's http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt Dag's PGP key, save it and import it as we did before rpm --import RPM-GPG-KEY.dag.tx
.
Get Dag's http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt Dag's PGP key, save it and import it as we did before:
# rpm --import RPM-GPG-KEY.dag.txt
We are now ready to update and isntall anything we want:
# yum -y update
The -y
will allow us to do something else while yum is going about its work. Otherwise, it will wait for you to confirm the changes in the middle of the process, which can be quite long.
One thing to do is to remove unnecessary services that consume resources on your machine: you can use the Services applet from the menu System Settings -> Server Settigns -> Services.
You can generally remove services such as isdn
, httpd
, sendmail
, spamassassin
, that are not needed on a laptop.
Reboot and you're done.
To install a new application, say mplayer
to play movies, we just need to invoke the powers of yum again:
# yum -y install mplayer
It will download everything needed for mplayer to work, resolving dependencies for you.
- Single head SonyVaioSingleHead? display, the laptop screen only.
- Dualhead SonyVaioSingleHead? display, with a second LCD monitor connected to the laptop and located at the right of the laptop. The second monitor is only 1024x768 in resolution. You may have to tinker with this config to make it work for you.
- SonyVaioSingleHead Single Head? display, the laptop screen only.
- SonyVaioDualHead Dual Head? display, with a second LCD monitor connected to the laptop and located at the right of the laptop. The second monitor is only 1024x768 in resolution. You may have to tinker with this config to make it work for you.
Update
The first thing to do is to update the distribution before we start tinkering with it.
Open a terminal, insert the Fedora Core installation disk and, once the CD/DVD has been mounted, type rpm --import /media/cdrecorder/RPM*
. This will ensure that the digital signatures for the verification of packages are loaded.
I also recommend to use the DAG repository as it contains a lot more intereting packages:
Create the file /etc/yum.repos.d/dag.repo
and insert the following lines into it:
baseurl=http://apt.sw.be/fedora/$releasever/en/$basearch/dag gpgcheck=1 enabled=1
Get Dag's http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt Dag's PGP key, save it and import it as we did before rpm --import RPM-GPG-KEY.dag.tx
.
- Single head display, the laptop screen only.
- Dualhead display, with a second LCD monitor connected to the laptop and located at the right of the laptop. The second monitor is only 1024x768 in resolution. You may have to tinker with this config to make it work for you.
: don't use the Screen rsolution or Display Config tools found in the menu, they would mess up the config file.
- Single head SonyVaioSingleHead? display, the laptop screen only.
- Dualhead SonyVaioSingleHead? display, with a second LCD monitor connected to the laptop and located at the right of the laptop. The second monitor is only 1024x768 in resolution. You may have to tinker with this config to make it work for you.
Note: don't use the Screen Resolution or Display Config tools found in the Applications menu, they would mess up the config file.
Bits and Tips
- To Eject the CD tray, type
eject cdrecorder
from a terminal.
Describe SonyVaio here.
The following relates installation of Fedora Core 3 on a Vaio VGN-A170P laptop.
Intro
After acquiring on of the superb Vaio VGN series laptop, with its wondrous 17" 1920x1200 ultrabright display, I decided to install Fedora on a partition to coexist with the original WindowsXP.
I'm trying to cut down on my dependency on Windows software, and as I preach for a greater use of Linux and OSS in the business world, I have to do as I say. I can't get rid of Windows totally as I still rely on some software and programming environment such as VisualStudio to build Win32 and .Net applications, and on software like CorelDraw! that have not yet crossed over well enough to be used in a production environment.
Installation
I won't go in the details of partitioning the drive. there are a number of utilities that do that very well. I just created a 15GB partition, changed the boot sequence in the BIOS (press the F2 key when booting) and booted from a Fedora Core 3 boot CD.
I generally use network installation as I have copied the full install on one of the servers on my network and shared them using NFS. If you have the FC3 DVD or set of CDs, you'll do just as well although it will be a bit slower.
Just make a standard install, be carefull not to install over your existing Windwos partitions and to avoid touching the first partition of you drive which contains the recovery data for your laptop. Check that Grub will give you a choice of OS when you boot and then choose the packages you want to install. teh rest is a breeze and should not bring any issue. Reboot your PC, select your Fedora OS and just go through the initial on-screen configuration.
Display
For some reason, the Fedora tools have a hard time picking up the right display settings for the configuration, so we need to edit the /etc/X11/xorg.conf
file ourselves.
Here are 2 versions:
- Single head display, the laptop screen only.
- Dualhead display, with a second LCD monitor connected to the laptop and located at the right of the laptop. The second monitor is only 1024x768 in resolution. You may have to tinker with this config to make it work for you.
: don't use the Screen rsolution or Display Config tools found in the menu, they would mess up the config file.
Fonts
The stock fonts are quite horrible and look quite bad. The best thing I found was to import the True Type Fonts from my existing Windows setup and use those instead:
- copy all your TTF files into
/USR/X11R6/lib/X11/fonts/TTF
directory and make sure that that directory is added to thecatalogue
directive in the/etc/X11/fs/config
file. cd /USR/X11R6/lib/X11/fonts/TTF
then typemkfontscale
thenmkfontdir
- restard the font server with
service xfs restart
. - open a File Browser window and type
fonts:
in its URL bar. Open another File Browser window and go to your /USR/X11R6/lib/X11/fonts/TTF folder, select all the files and drop them into the first File Browser. Nothing will seem to happen, that's normal. - reboot or log-off and you should now be able to access the new fonts from all appliactions that use them.
Open the Font Preferences dialog under Application -> Preferences -> Fonts and select the following:
- Application font: Tahoma, 8pt
- Desktop font: Tahoma 8pt
- Window title font: trebuchet MS, 10pt
- Terminal font: Lucida Console, 8pt
Under the Font rendering section, click Details... :
- Resolution should be 96dpi
- Smoothing set to Subpixel (LCDs)
- Hinting set to None.
- Subpixel order, leave to default RGB.
Under Mozilla/Firebird, under Edit -> Preferences..., General Tab, click Fonts & Colors...:
- Proportional: Serif, Size 16px
- Serif: Times New Roman
- Sans-serif: Arial
- Monospace: Courier New, 13px
- Display Resolution:96 dpi
- Minimum font size: None
Now all those parameters suit me most, you may find others better suited for you. I'm a bit disapointed though that fonts are still an issue to get right. The results are not so pleasing.