Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
radeon 7500m, acpid, radeontool, atitvout...one happy family
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
sp33dy
n00b
n00b


Joined: 17 Apr 2003
Posts: 60

PostPosted: Fri Apr 25, 2003 8:40 pm    Post subject: radeon 7500m, acpid, radeontool, atitvout...one happy family Reply with quote

I was getting quite pissed off with atitvout...as it cannot display to both the tv and lcd at the same time. Anyhow after setting up radeontool to turn off the display when I close the lid, I decided to add to it atitvout.

When I close the lid, the lcd display is turned off and tvout is turned on. Open the lid and the reverse happens. :D

Here is the code for my acpi event handler...
Code:

#!/usr/bin/perl
# Default acpi script that takes an entry for all actions
use strict;

if ($ARGV[0] eq "button/power") {
   if ($ARGV[1] eq "PWRF") {
      system("/sbin/init", 0);
   }
   else{
      system("logger", "ACPI action $ARGV[1] is not defined");
   }

}
elsif ($ARGV[0] eq "button/lid") {
   if ($ARGV[3] =~ /[13579bdf]$/) {
      system("/sbin/radeontool", "light", "off");
      system("/usr/bin/atitvout", "-f", "t");
   }
   elsif ($ARGV[3] =~ /[02468ace]$/) {
      system("/sbin/radeontool", "light", "on");
      system("/usr/bin/atitvout", "-f", "l");
   }
   else{
      system("logger", "ACPI action $ARGV[1] is not defined");
   };

}
else{
   system("logger", "ACPI group $ARGV[0] / action $ARGV[1] is not defined");
};

Back to top
View user's profile Send private message
dabooty
Guru
Guru


Joined: 15 May 2003
Posts: 482
Location: Belgium

PostPosted: Sat May 17, 2003 3:44 pm    Post subject: Could you provide a little more information Reply with quote

Could you provide a little more infomation as to how to get atitvout and the ati drivers working, so a noob could get it?

and would you know if the same would work on a radeon VE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum