LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 01-27-2005, 02:34 PM   #16
MSKHez
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Rep: Reputation: 0

I'm glad the xorg configs helped!

For the screen brightness, you need to load a module (sonypi, I think it's in the mainline 2.6.x kernels). You can get a utility here to control the brightness:

http://popies.net/sonypi/

It works well here for me.

The biggest issue that I have left to work out is scrolling on the touchpad, and (en/dis)abling tapclicking. I think this requires a kernel recompile and/or patch of some kind though, as the touchpad is an Alps and not Synaptic from what I understand. Have you messed with this at all?
 
Old 01-27-2005, 06:59 PM   #17
zilo
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
s3 suspend

Does anyone know how to do memory suspend s3 with ACPI?
 
Old 01-27-2005, 09:25 PM   #18
MSKHez
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Rep: Reputation: 0
Which distribution are you running? For me, it worked (usually?) in Ubuntu Warty, and it works wonderfully in Hoary as long as you use the xorg drivers, not the ATI binary drivers.

In Hoary, you can run /etc/acpi/sleep.sh as root to suspend to ram. I have not set this up or done much tweaking by hand, so I'm not sure what needs to be done on other distros.

Kernel 2.6.10+ may help as well, as I noticed a major increase in the speed of suspend/resume with it. That may have been a coincidence though.
 
Old 01-28-2005, 07:37 AM   #19
zilo
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
Glad to know. I use Debian. It would be nice to know what exactly must be tweaked so that it works. If we know all this info maybe we can have any distro work.

Update: I was using the 2.6.10 stock kernel. Using either the Debian 2.6.9 or 2.6.10 kernels let s3 work from X. From text console I need boot-radeon. A straight 2.6.10 kernel also works if you choose the right options (use for example the config file in Deb 2.6.10).

Last edited by zilo; 01-30-2005 at 08:07 AM.
 
Old 01-28-2005, 08:12 AM   #20
MSKHez
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Rep: Reputation: 0
I think Ubuntu uses debian patches + a few extras. They may also use a different/tweaked set of ACPI scipts and settings.

I believe there is an Ubuntu package with their specific patchset separate from the kernel source, but I have not looked into this very closely.
 
Old 01-28-2005, 01:18 PM   #21
woodwizzle
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Rep: Reputation: 0
ok now i'm having troubles with the sonypi module and sonypid program

I've got the module to load on startup

I have to manually run sonypid as root (i havn't figured out how to get it to run automatically yet)

the sonypid program works but doesn't trigger any events. For example if I hit Fn-F5 it says Fn-F5 has been hit, but event unknown!

How do I get it to run the correct events or configure them myself?

Thanks again,
Corey
 
Old 01-28-2005, 02:11 PM   #22
MSKHez
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Rep: Reputation: 0
I have not used the sonypid program beyond doing what you have. I the spicctrl program from that website to control screen brightness from the command line.

There was another program I used (I may have hacked the sonypid code somewhat?) that allowed me to use the Fn-key combinations to adjust brightness, but that caused a lot of other problems with the touchpad and other items.

There are easier ways to do this I'm sure, but I haven't looked into them too much. If you do find anything better please let me know.
 
Old 01-30-2005, 08:08 AM   #23
zilo
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
Modem

Modem works with linuxant hsf linux driver.
 
Old 06-14-2005, 11:13 PM   #24
Kahr
LQ Newbie
 
Registered: Jun 2005
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Sound?

I'm using Debian on my s260, and I was wondering if it is possible to allow multiple applications to use the sound card. Currently, it seems only one app at a time can make sound. Any help is appreciated.
 
Old 07-06-2005, 08:06 AM   #25
woodwizzle
LQ Newbie
 
Registered: Dec 2004
Posts: 5

Rep: Reputation: 0
Thumbs up

I ditched arch linux for ubuntu hoary. Everything and I do mean Everything* configured just about perfect automatically.

2 exceptions: No modem driver still because it is proprietary. and the lamp didn't get preconfigured. I'm gonna try sonypi under ubuntu and see how it goes *crosses fingers*
 
Old 07-06-2005, 09:16 AM   #26
MSKHez
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Rep: Reputation: 0
The sonypi + spicctrl combo works well for me on Hoary. I haven't been able to tie the Fn+Function keys to their proper functions without breaking other items, but I don't adjust the screen brightness that often anyway, so it's not such a big deal.

Good luck getting it setup!
 
Old 07-06-2005, 12:59 PM   #27
]grimm[
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Function keys

I just edited a script that someone wrote for their Z1 to get the function keys working on my machine. It needs sonypid, aumix for audio, and spicctrl for the screen brightness. You could also map whatever you would like to the sleep key. I toyed around with mapping some radeontool commands to the lcd/external output key, but that was quite unstable so I dropped it. The mute key will mute the audio by setting the volume to zero, so it won't unmute and restore to where it was if you press it again.

Hope it helps.

Code:
#!/usr/bin/perl
###########
#
# Daemon to monitor sonypi events and do things, on machines that have
# the sony programmable I/O device. Requires the "sonypid" daemon as 
# input, and the "spicctrl", "aumix", and "sox" programs for output.
#
# There is a table of actions to take for each sonypi function-key event.  
# Only a few of the events (notably brightness and loudness) are used.
# 
# There is currently no support for anything other than function-key
# events -- but it should be obvious where to add that functionality.
#
# The external commands may need customization for your system; they work
# on my Z1 machine with Red Hat 9 and aumix and spicctrl installed in
# /usr/local/bin.  
#
# Best of luck; questions, comments, or revisions may be directed to 
# "deforest@boulder.swri.edu".
#
# Copyright Craig DeForest, 2003
#
# You may distribute this under the terms of the GPL version 2; the 
# complete license is available at http://www.gnu.org/licenses/gpl.txt
#

##########
# Some setup variables collected here for convenience

$bright_steps = 10;
$spicctrl = '/usr/bin/spicctrl';
$aumix = '/usr/bin/aumix';
#$click = "/usr/bin/sox /opt/kde/share/sounds/KDE_Click.wav -r 48000 -t raw /dev/audio";
$click = '';
##########
# What to do when the brightness key is hit
$bs = 256/$bright_steps;
$brighter = sub {
    $B =  int( $bs * ( int(`$spicctrl -B` / $bs + 0.5) + 1 ));
    `$spicctrl -b $B`;
};

$dimmer = sub {
    $IB = int (`$spicctrl -B`);
    if ($IB ne 0){
    $B =  int( $bs * ( int(`$spicctrl -B` / $bs + 0.5) - 1 ));
    `$spicctrl -b $B`;
    }
};

##########
# Table of function-key actions.  List ref containing strings 
# executes strings as shell commands; code ref gets executed in situ.

@fcmds = (undef                            # 0
	  , undef                          # 1
	  , ["$aumix -v0 -W0"]                 # 2 - mute
	  , ["aumix -v-10 -W-10","$click"]       # 3 - reduce volume
          , ["$aumix -v+10 -W+10","$click"]      # 4 - increase volume
	  , $dimmer                      # 5 - increase brightness
	  , $brighter                      # 6 - decrease brightness
#          , ["$spicctrl -b 0"]             # 6 - minimum brightness
	  , undef 		           # 7 - LCD/VGA - not yet
          , undef                          # 8 
          , undef                          # 9
          , undef                          # 10
          , undef                          # 11
          , undef                          # 12
					   );

#
# Daemon stuff -- check the lockfile (There Can Only Be One!) and 
# spawn twice to disassociate from the terminal.
# 
if(open FILE,"</tmp/.sonypidd-lock" ) {
    chomp($otherpid = <FILE>);
    @lines = `ps -e`;
    @found = grep(/^\s*$otherpid\s/o && /sonypidd/,@lines);
    if(@found) {
	print STDERR "Sonypidd is already running (PID $otherpid)\n";
	exit(1);
    }
}

open FILE,">/tmp/.sonypidd-lock" || die "Couldn't open lock file\n";
exit 0 if(fork);
exit 0 if(fork);
print FILE $$,"\n";
close FILE;


##########
# Open a sonypid process to read the sonypi device
pipe READ,WRITE;
$pid = fork();
$| = 1;
if(!$pid) {
    close READ;
    open STDERR,">&WRITE";
    open STDOUT,">&WRITE";
    exec('/usr/bin/sonypid');
    die;
}
close WRITE;

##########
# Interrupt handling -- clean up the sonypid before dying...
$die = sub{ kill(9,$pid); exit 1; };
$SIG{HUP} = $SIG{INT} = $SIG{QUIT} = $SIG{TERM} = $die;


##########
# Event loop -- grab the function-key events, look 'em up, and do 'em.
# Go away as soon as the sonypid dies.

while(defined(  $_ = <READ> )){
  s/^Event:\s*//;
  @words = split(m/\s+/,$_);

  if($words[0] =~ m/^Fn-F(\d+)$/) {
      my $f_no = $1;
      if(defined($fcmds[$f_no])) {
	  if(ref $fcmds[$f_no] eq 'CODE') {
	      &{$fcmds[$f_no]};
	  } elsif(ref $fcmds[$f_no] eq 'ARRAY') {
	      for(@{$fcmds[$f_no]}) {
		  `$_`;
	      }
	  }
      }
  }
}

exit 0;

Last edited by ]grimm[; 07-07-2005 at 02:37 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sony Vaio VGN-S260 'howto' Shade Linux - Laptop and Netbook 0 04-19-2005 03:16 AM
Sony Vaio VGN-FS115M Gigantas Linux - Laptop and Netbook 11 03-19-2005 08:28 AM
Sony Vaio VGN-B1XP / sony driver question kentri9 Linux - Laptop and Netbook 0 12-27-2004 11:00 AM
Memory stick not working on Sony S260 laptop kkempter Linux - Hardware 10 12-26-2004 09:26 PM
Soundcard detected on Sony S260 laptop but not working kkempter Linux - Hardware 1 12-24-2004 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 05:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration