Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo on IBM Thinkpad T42
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
~L~
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 154
Location: Finland

PostPosted: Thu Nov 10, 2005 10:18 pm    Post subject: Reply with quote

Nevermind...

I changed to synaptics and the touchpad scrolling is ok for me.

blais wrote:

If I start X without the USB mouse, and then I plug in the USB mouse, X does
not realize that the mouse appeared and I cannot use it. I need to log out
and back in to have the external mouse work. I wonder if there is an option
to instruct Xorg to not try to detect the mouse and therefore to initialize
the driver anyway. Check this out further.


Does anyone know a solution for this problem?

EDIT:

I had to point the device to /dev/input/mice and not /dev/input/mouse2.


Last edited by ~L~ on Wed Nov 23, 2005 12:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
seringen
Apprentice
Apprentice


Joined: 03 Aug 2003
Posts: 163
Location: berkeley, california

PostPosted: Thu Nov 17, 2005 12:17 am    Post subject: Reply with quote

anyone tried the latest ati-drivers that supposedly work with suspension?
Back to top
View user's profile Send private message
misto
n00b
n00b


Joined: 28 Feb 2004
Posts: 32

PostPosted: Thu Nov 17, 2005 6:46 pm    Post subject: Reply with quote

seringen wrote:
anyone tried the latest ati-drivers that supposedly work with suspension?


Yes, thats right, they finally work with standby :)
Back to top
View user's profile Send private message
krizz
n00b
n00b


Joined: 15 Sep 2004
Posts: 26

PostPosted: Tue Nov 22, 2005 11:14 am    Post subject: Reply with quote

Hello there, another T42 owner here (I don't 0wn it yet though :) ),

I have been screwing around with hibernation for a while now...and I have some problems with hibernate-ram under X.org.

I started with a clean gentoo installation, installed X.org and used the ati-drivers as display drivers. I did the xorg.conf configuration with fglrxconfig. I use VESA-tng as a framebuffer driver, they work nice together, no problems when switching forth and back to X from the framebuffer console.

After that, I did the gentoo tutorial about powermanagement: http://www.gentoo.org/doc/en/power-management-guide.xml

Frequency scaling and the battery runlevel worked right away, blanking the screen under X.org did NOT. I have troubles with hibernate-ram too. I got hibernate-ram to work from the framebuffer console, but not in X.org.

Here's what I've did:

I have the 'sleep states' option for ACPI compiled in:
Code:
grep "SLEEP" /usr/src/linux/.config
CONFIG_ACPI_SLEEP=y

I have hibernate-script and vbetool installed:
Code:
emerge -p hibernate-script vbetool

These are the packages that I would merge, in order:

Calculating dependencies   ...done!
[ebuild   R   ] sys-power/hibernate-script-1.12
[ebuild   R   ] sys-apps/vbetool-0.3

Then I had to fiddle around with /etc/hibernate/ram.conf before I could get it to work from framebuffer console. Here's my /etc/hibernate/ram.conf (commented lines left out):
Code:
UseSysfsPowerState mem

Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1

Distribution gentoo
XDisplay :0

SaveClock restore-only

IbmAcpi yes
RadeonTool yes

UnloadBlacklistedModules yes
LoadModules auto

GentooModulesAutoload yes

EnableVbetool yes
VbetoolPost yes

I have several kernel parts compiled as modules (command invoked under X):
Code:
lsmod
Module                  Size  Used by
fglrx                 429312  9
button                  4880  0
psmouse                36484  0
usbhid                 29124  0
yenta_socket           24588  0
rsrc_nonstatic         12032  1 yenta_socket
pcmcia_core            36176  2 yenta_socket,rsrc_nonstatic
ehci_hcd               30728  0
uhci_hcd               30928  0
usbcore               109696  4 usbhid,ehci_hcd,uhci_hcd
vfat                   11200  1
cpufreq_performance     1664  1
cpufreq_conservative     6308  0
cpufreq_ondemand        5340  0
cpufreq_powersave       1472  0
acpi_cpufreq            5192  1
ibm_acpi               24192  0
ati_agp                 6732  0
agpgart                29512  2 fglrx,ati_agp
firmware_class          8000  0
video                  13892  0
thermal                10504  0
processor              18684  2 acpi_cpufreq,thermal
battery                 7556  0
ac                      3332  0
e1000                 103156  0
rtc                    10808  0

In /boot/grub/grub.conf I have the kernel parameter acpi_sleep=s3_bios.

When I hibernate-ram/resume under framebuffer-console (VESA-tng), everything is fine. When I hibernate under X.org, the hibernation is ok, but at the resume a problem comes up. On resume everything is loaded; even X.org comes back with the right screen and the system seems to be stable, but when I try to scroll a webpage or move a window, it gets f'cked up (window borders are not redrawn etc.), here's an impression:

http://i5.photobucket.com/albums/y189/krizzzz/fglrx_fckedup.jpg

And then after a while it just hangs (if I don't restart X.org).

I'm very sure It's the ati-drivers because If I do a kernel-recompile and 'forget' to re-emerge the ati-drivers package, resume works ok.

I also tried to compile-in the modules that are on the /etc/hibernate/blacklisted-modules but that didn't help.

Here's some further info:
Code:
uname -a
Linux tornado 2.6.14-gentoo-r2 #1 PREEMPT Tue Nov 22 11:21:46 CET 2005 i686 Intel(R) Pentium(R) M processor 1.70GHz GenuineIntel GNU/Linux

Code:
flgrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9600 Generic
OpenGL version string: 1.3.5461 (X4.3.0-8.19.10)

Code:
tail /var/log/hibernate.log
Starting suspend at Tue Nov 22 11:59:27 CET 2005
hibernate-ram: [01] Executing CheckLastResume ...
hibernate-ram: [01] Executing LockFileGet ...
hibernate-ram: [01] Executing NewKernelFileCheck ...
hibernate-ram: [10] Executing EnsureSysfsPowerStateCapable ...
hibernate-ram: [11] Executing XHacksSuspendHook1 ...
hibernate-ram: [12] Executing IbmAcpiStartSuspend ...
hibernate-ram: [89] Executing SaveKernelModprobe ...
hibernate-ram: [91] Executing ModulesUnloadBlacklist ...
hibernate-ram: [95] Executing XHacksSuspendHook2 ...
hibernate-ram: [97] Executing VbetoolSaveState ...
hibernate-ram: [98] Executing RadeonToolBacklightOff ...
hibernate-ram: [99] Executing DoSysfsPowerStateSuspend ...
hibernate-ram: Activating sysfs power state mem ...
hibernate-ram: [98] Executing RadeonToolBacklightOn ...
hibernate-ram: [97] Executing VbetoolRestoreState ...
hibernate-ram: [91] Executing GentooModulesAutoload ...
Loading modules listed /etc/modules.autoload.d/kernel-2.6
Loading rtc
Loading e1000
Loading ac
Loading battery
Loading button
Loading thermal
Loading video
Loading firmware_class
Loading agpgart
Loading ati-agp
Loading ibm_acpi
Loading acpi_cpufreq
Loading cpufreq_powersave
Loading cpufreq_ondemand
Loading cpufreq_conservative
Loading cpufreq_performance
hibernate-ram: [90] Executing ModulesLoad ...
hibernate-ram: [89] Executing RestoreKernelModprobe ...
hibernate-ram: [85] Executing XHacksResumeHook2 ...
hibernate-ram: [70] Executing ClockRestore ...
hibernate-ram: [12] Executing IbmAcpiEndResume ...
hibernate-ram: [11] Executing XHacksResumeHook1 ...
hibernate-ram: [01] Executing NoteLastResume ...
hibernate-ram: [01] Executing LockFilePut ...
Resumed at Tue Nov 22 12:59:45 CET 2005

No strange things in /var/log/Xorg.0.log, /var/log/acpid or /var/log/messages.

My gentoo-installation is only two weeks old.

Can somebody help me?
Back to top
View user's profile Send private message
NewB
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 224

PostPosted: Mon Dec 12, 2005 2:41 pm    Post subject: Reply with quote

if you are interested in the tv-out here is how i got it to work:

start the X-server like this :

Code:
startx -- -layout tv


with official ati drivers and this xorg config:

Code:

Section "ServerLayout"
   Identifier     "single"
   Screen         "fglLCD" 0 0
   InputDevice    "TP Keyboard"
   InputDevice    "UltraNav" "CorePointer"
   InputDevice    "usbmouse"
EndSection

Section "ServerLayout"
        Identifier     "tv"
        Screen         "fglTV" 0 0
        Screen         "fglLCD" RightOf "fglTV"
        InputDevice    "TP Keyboard"
        InputDevice    "UltraNav" "CorePointer"
        InputDevice    "usbmouse"
        Option         "Xinerama" "false"
EndSection

Section "ServerLayout"
   Identifier     "CRT"
   Screen         "fglLCD_crt" 0 0
   Screen         "fglLCD" LeftOf "fglLCD_crt"
   InputDevice    "TP Keyboard"
   InputDevice    "UltraNav" "CorePointer"
   InputDevice    "usbmouse"
   Option          "Xinerama" "false"
EndSection

Section "Files"
    FontPath   "/usr/share/fonts/ttf-bitstream-vera/"
    FontPath   "/usr/share/fonts/terminus/"
    FontPath   "/usr/share/fonts/corefonts/"
    FontPath   "/usr/share/fonts/freefont/"
    FontPath   "/usr/share/fonts/artwiz/"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/75dpi/:unscaled"
    FontPath   "/usr/share/fonts/100dpi/:unscaled"
    FontPath   "/usr/share/fonts/encodings/"
    FontPath   "/usr/share/fonts/TTF/"
    FontPath   "/usr/share/fonts/sharefont/"
    FontPath   "/usr/share/fonts/lfp-fix/"
    FontPath   "/usr/share/fonts/75dpi/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/unifont/"
    FontPath   "/usr/share/fonts/ttf/ja/aqua"
    FontPath   "/usr/share/fonts/sharefont"
    RgbPath   "/usr/lib/X11/rgb"
    FontPath    "/usr/share/fonts/truetypes"
EndSection

Section "Module"
   Load        "ddc"
   Load        "GLcore"
   Load        "bitmap"
   Load        "dbe"
   Load        "extmod"
   SubSection "extmod"
      #Option   "omit xfree86-dga"
   EndSubSection
   Load        "glx"
   Load        "record"
   Load        "freetype"
   Load        "v4l"
   Load        "ddc"
   Load        "dri"
   Load        "speedo"
   Load        "type1"
   Load        "synaptics"
   Load        "record"
EndSection

Section "InputDevice"
   Identifier     "TP Keyboard"
   Driver         "kbd"
   Option          "CoreKeyboard"
   Option          "XkbModel" "pc105"
   Option          "XkbLayout" "fr_CH"
EndSection

#Section "Extensions"
#       Option      "Composite"   "Enable"
#   Option      "RENDER"   "true"
#EndSection

Section "InputDevice"
   Identifier     "UltraNav"
   Driver         "synaptics"
   Option          "CorePointer"
   Option          "Device" "/dev/psaux"
   Option          "Protocol" "auto-dev"
   Option          "LeftEdge" "1900"
   Option          "RightEdge" "5400"
   Option          "TopEdge" "1900"
   Option          "BottomEdge" "4000"
   Option          "FingerLow" "25"
   Option          "FingerHigh" "30"
   Option          "MaxTapTime" "180"
   Option          "MaxTapMove" "220"
   Option          "VertScrollDelta" "100"
   Option          "MinSpeed" "0.06"
   Option          "MaxSpeed" "0.18"
   Option         "AccelFactor" "0.0010"
   Option          "SHMConfig" "on"
#     Option         "Repeater"      "/dev/ps2mouse"
EndSection

Section "InputDevice"
   Identifier     "usbmouse"
   Driver         "mouse"
   Option          "SendCoreEvents" "true"
   Option          "Device" "/dev/input/mice"
   Option          "Protocol" "ImPS/2"
   Option          "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
   #HorizSync   28-50
   #VertRefresh   60 #43-75
   Identifier   "TP LCD"
   Option           "DPMS"
EndSection

Section "Monitor"
   Identifier      "External Monitor"
#   HorizSync   30.0-96.0
#   VertRefresh   48.0-120.0
   Option           "DPMS"
EndSection

Section "Monitor"
   Identifier      "Television"
   HorizSync   30-60
   VertRefresh   50-70
   Option          "DPMS"
EndSection

Section "Device"
    Identifier                          "fgl0"
    Driver                              "fglrx"
    Option "MonitorLayout"              "LVDS, NONE" #STV"
    Option "IgnoreEDID"                 "off"
    Option "ScreenOverlap"              "0"
# === FSAA Management ===
    Option "TVStandard"                 "PAL-D"
    Option "TVHSizeAdj"                 "30"
    Option "FSAAEnable"                 "no"
    Option "FSAAScale"                  "0"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
# === Misc Options ===
    Option "Video Overlay"              "on"
    Option "PseudoColorVisuals"         "off"
    Option "UseFastTLS"                 "2"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    Option "NvAGP"         "1"
    Option "AGPMode"         "4"
    Option "EneblePageFlip"      "True"
    Option "IgnoreEDID"         "off"
    Option "backingstore"               "true"
    BusID "PCI:1:0:0"    # vendor=1002, device=4c66
    Screen 0
EndSection

Section "Device"
    Identifier                          "fgl0_crt"
    Driver                              "fglrx"
    Option "MonitorLayout"              "LVDS, CRT" #STV"
    Option "IgnoreEDID"                 "off"
    Option "TVStandard"                 "PAL-D"
    Option "TVHSizeAdj"                 "30"
    Option "HSync2"                     "30.0-96.0"
    Option "VRefresh2"                  "48.0-120.0"
    Option "ScreenOverlap"              "0"
# === FSAA Management ===
    Option "FSAAEnable"                 "no"
    Option "FSAAScale"                  "0"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
# === Misc Options ===
Option "Video Overlay"              "on"
    Option "PseudoColorVisuals"         "off"
    Option "UseFastTLS"                 "2"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    Option "AGPMode"                    "4"
    Option "EneblePageFlip"             "True"
    Option "IgnoreEDID"                 "off"
    Option "backingstore"               "true"
    BusID "PCI:1:0:0"    # vendor=1002, device=4c66
    Screen 1
EndSection

Section "Device"
    Identifier                          "fgl1"
    Driver                              "fglrx"
    Option "IgnoreEDID"                 "off"
    Option "ScreenOverlap"              "0"
# === TV Options ===
    Option "NoTV"                       "no"
    Option "TVStandard"                 "PAL-D"
    Option "TVHSizeAdj"                 "30"
    Option "TVVSizeAdj"                 "0"
    Option "TVHPosAdj"                  "0"
    Option "TVVPosAdj"                  "0"
    Option "TVHStartAdj"                "0"
    Option "TVColorAdj"                 "0"     
    Option "GammaCorrectionI"           "0x06419064"
    Option "GammaCorrectionII"          "0x06419064"
# === FSAA Management ===
Option "Video Overlay"              "on"
    Option "PseudoColorVisuals"         "off"
    Option "FSAAEnable"                 "no"
    Option "FSAAScale"                  "0"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
# === Misc Options ===
    Option "UseFastTLS"                 "2"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    Option "NvAGP"                      "1"
    Option "AGPMode"                    "4"
    Option "EneblePageFlip"             "True"
    Option "IgnoreEDID"                 "off"
    Option "backingstore"               "true"
    BusID "PCI:1:0:0"    # vendor=1002, device=4c66
    Screen 1
EndSection

Section "Screen"
   Identifier "fglLCD"
   Device     "fgl0"
   Monitor    "TP LCD"
   DefaultDepth     24
   SubSection "Display"
      Depth     24
      Modes    "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
   EndSubSection
EndSection

Section "Screen"
   Identifier "fglLCD_crt"
   Device     "fgl0_crt"
   Monitor    "External Monitor"
   DefaultDepth     24
   SubSection "Display"
      Depth     24
      Modes    "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
   EndSubSection
EndSection

Section "Screen"
   Identifier "fglTV"
   Device     "fgl1"
   Monitor    "Television"
   DefaultDepth     24
   SubSection "Display"
      Depth     24
      Modes     "640x480"
   EndSubSection
EndSection

Section "DRI"
   Mode         0666
EndSection

Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Fri Dec 16, 2005 1:13 pm    Post subject: Reply with quote

Hi all,

yesterday I started installing Gentoo on my new T43p. I am very happy with it so far, but I am stuck at a strange power management thing. I followed this guide and got most of it to work.

The problems I have are related to frequency sccaling. cpufreqd is started in both runlevels, battery and default, as you can see.
Code:
Runlevel: battery
 xdm                                                                                     [ started ]
 sshd                                                                                    [ started ]
 acpid                                                                                   [ started ]
 local                                                                                   [ started ]
 vixie-cron                                                                              [ started ]
 syslog-ng                                                                               [ started ]
 net.eth0                                                                                [ started ]
 netmount                                                                                [ started ]
 cpufreqd                                                                                [ started ]
 lcd-brightness                                                                            [   off ]

Runlevel: default
 xdm                                                                                     [ started ]
 sshd                                                                                    [ started ]
 acpid                                                                                   [ started ]
 local                                                                                   [ started ]
 vixie-cron                                                                              [ started ]
 syslog-ng                                                                               [ started ]
 net.eth0                                                                                [ started ]
 netmount                                                                                [ started ]
 cpufreqd                                                                                [ started ]


The runlevels do not differ except for lcd-brightness:
Code:
diff /etc/runlevels/default/ /etc/runlevels/battery/
Only in /etc/runlevels/battery/: lcd-brightness

If I start the computer in battery mode or ac mode, cpufreqd is started at startup. But it only seems to work in ac mode.

Starting the computer in ac mode gives me a reduced frequency with
Code:
watch grep \"cpu MHz\" /proc/cpuinfo

but starting the computer in battery does not show a decreased frequency.

Any help is greatly appreciated ;-).

R!tman

EDIT: I took the part about cpufreq-set out, as it does work. User error ;-)!
Only cpufreqd does not seem to work in battery mode.
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Fri Dec 16, 2005 3:31 pm    Post subject: Reply with quote

Hmm...

it seems to have been the /etc/cpufreqd.conf given in the HOWTO. With the one that comes with the ebuild it works (better). I will have to fine tune it.

EDIT: The reason was that somehow always the rule "battery_low" was used, although I was at 97% capacity.
I have not yet solved this, but I am using ondemand for all battery things now.
Back to top
View user's profile Send private message
Bryan.Rank
n00b
n00b


Joined: 25 Nov 2005
Posts: 1

PostPosted: Tue Dec 27, 2005 3:48 am    Post subject: Reply with quote

Kriz I think I got this one nailed, as sleep to RAM finally works on my T42p. My problem was just like yours and I was pulling my hair out. I was doing a couple things wrong. First was auto-loading the agpgart module (I think it might said to do exlicitly put agpart in autoload.d in the gentoo ati HOWTO, but if you read the realease notes on the ATI web pages https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/linux_8.20.8.html buried down deep it tells you not to do this and that the fglrx module will not work correctly if the agpgart module is loaded. Funny thing when I had it loaded, there were no errors in any logs, everything "looked" fine.

Anyhow here is my autoload config for the IBM Laptop... (/etc/modules.autoload.d/kernel-2.6)
Quote:

# madwifi stuff so wireless LAN will work
ath_hal
ath_pci
# speedstep stuff works great
speedstep_centrino
# agpgart <- ati readme said not to load this module.
# ati-agp <- this one was hosing me. Using the intel one made sleep work!
intel-agp
fglrx


The other really brain dead thing I was doing was using the wrong agp chipset support. I had ATI chipset configured as a module, when the T42p really uses the intel AGP chipset (even though it has an ATI video card). Below is what my kernel config looks like now.
Code:

Devices->
  CharacterDevices->
   <M> /dev/agpgart (AGP Support)
   < >   ALI chipset support
   < >   ATI chipset support
   < >   AMD Irongate, 761, and 762 chipset support
   < >   AMD Opteron/Athlon64 on-CPU GART support
 <M>   Intel 440LX/BX/GX, I8xx and E7x05 chipset support


Hope this helps.


Bryan


Last edited by Bryan.Rank on Sat Jan 07, 2006 6:16 am; edited 1 time in total
Back to top
View user's profile Send private message
narcis
n00b
n00b


Joined: 29 Dec 2005
Posts: 16

PostPosted: Thu Dec 29, 2005 4:23 pm    Post subject: Reply with quote

Can I somehow enable the trackpoint, but disable the touchpad in X, or vice versa?
Thanks for the nice howto, I'll have a try at it later...
Back to top
View user's profile Send private message
pcsabi
n00b
n00b


Joined: 02 Jan 2006
Posts: 1

PostPosted: Mon Jan 02, 2006 10:04 am    Post subject: Reply with quote

krizz wrote:

When I hibernate-ram/resume under framebuffer-console (VESA-tng), everything is fine. When I hibernate under X.org, the hibernation is ok, but at the resume a problem comes up. On resume everything is loaded; even X.org comes back with the right screen and the system seems to be stable, but when I try to scroll a webpage or move a window, it gets f'cked up (window borders are not redrawn etc.), here's an impression:

Hi krizz,

Do you have a solution ?

I have the same problem. The strange thing that the Xorg restart is not needed, it is enough to restart X session. ( After login the same X server is running without any problem... )

Thanks,
Back to top
View user's profile Send private message
Life is a Bug
n00b
n00b


Joined: 01 Feb 2006
Posts: 2

PostPosted: Wed Feb 01, 2006 1:55 pm    Post subject: tpb Reply with quote

Thanks for this great post. It helped me a lot so far.
Anyway i am stuck at one point at the moment. I cant get tpb to work

I emerged tpb
Code:
 USE="xosd" emerge tpb


and then i changed the tpb config to my needs
Code:
gedit /etc/tpbrc


i also enabled /dev/nvram in kernel and recompiled it

now when i start tpb and press some buttons nothing happens

Code:
tpb -d


in the tpbrc i told tpb to execute a shell script when i press the ibm button but that doesnt seem to work
for testing i tried:

Code:
tpb -- daemon -- verbose --osd=ON --thinkpad="echo 'pressed'"


and again i dont get any output when i press that button

Can anybody help me please? :)

Thanks
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Wed Feb 01, 2006 6:21 pm    Post subject: Re: tpb Reply with quote

Life is a Bug wrote:
Thanks for this great post. It helped me a lot so far.
Anyway i am stuck at one point at the moment. I cant get tpb to work

I emerged tpb
Code:
 USE="xosd" emerge tpb


and then i changed the tpb config to my needs
Code:
gedit /etc/tpbrc


i also enabled /dev/nvram in kernel and recompiled it

now when i start tpb and press some buttons nothing happens

Code:
tpb -d


in the tpbrc i told tpb to execute a shell script when i press the ibm button but that doesnt seem to work
for testing i tried:

Code:
tpb -- daemon -- verbose --osd=ON --thinkpad="echo 'pressed'"


and again i dont get any output when i press that button

Can anybody help me please? :)

Thanks

Does anything happen when you execute tpb as root?
Back to top
View user's profile Send private message
Life is a Bug
n00b
n00b


Joined: 01 Feb 2006
Posts: 2

PostPosted: Wed Feb 01, 2006 6:52 pm    Post subject: Re: tpb Reply with quote

R!tman wrote:
Life is a Bug wrote:
Thanks for this great post. It helped me a lot so far.
Anyway i am stuck at one point at the moment. I cant get tpb to work

I emerged tpb
Code:
 USE="xosd" emerge tpb


and then i changed the tpb config to my needs
Code:
gedit /etc/tpbrc


i also enabled /dev/nvram in kernel and recompiled it

now when i start tpb and press some buttons nothing happens

Code:
tpb -d


in the tpbrc i told tpb to execute a shell script when i press the ibm button but that doesnt seem to work
for testing i tried:

Code:
tpb -- daemon -- verbose --osd=ON --thinkpad="echo 'pressed'"


and again i dont get any output when i press that button

Can anybody help me please? :)

Thanks

Does anything happen when you execute tpb as root?


No, i didnt even test it yet as a non-root user


edit: by the way I am using a T40 but that shouldnt make any difference since it is also supported by tpb (refering to the tpb homepage)
Back to top
View user's profile Send private message
astrodelgato
n00b
n00b


Joined: 01 Jan 2004
Posts: 66
Location: Atlanta, GA

PostPosted: Fri Feb 10, 2006 10:19 pm    Post subject: Reply with quote

I've installed the synaptics driver, but I can get the motion on the touchpad to work. The buttons work fine. TrackPoint also works fine.

Code:
> cat /proc/bus/input/devices

I: Bus=0011 Vendor=0001 Product=0001 Version=ab54
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd event0
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0011 Vendor=0002 Product=0007 Version=0000
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 event1
B: EV=b
B: KEY=6420 0 70000 0 0 0 0 0 0 0 0
B: ABS=11000003

I: Bus=0000 Vendor=0000 Product=0000 Version=0000
N: Name="hdaps"
P: Phys=
S: Sysfs=/class/input/input2
H: Handlers=js0 event2
B: EV=9
B: ABS=3

I: Bus=0011 Vendor=0002 Product=000a Version=0000
N: Name="TPPS/2 IBM TrackPoint"
P: Phys=synaptics-pt/serio0/input0
S: Sysfs=/class/input/input3
H: Handlers=mouse1 event3
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3


relevant bits of xorg.conf:
Code:
Section "Module"
        Load    "record"
        Load    "extmod"
        Load    "dbe"
        Load    "dri"
        Load    "radeon"
        Load    "glx"
        Load    "xtrap"
        Load    "type1"
        Load    "freetype"
        Load    "synaptics"
EndSection

Section "InputDevice"
    Identifier    "Mouse1"
    Driver      "mouse"
    Option      "Protocol"      "auto"
    Option      "Device"        "/dev/input/mice"
    Option  "ZAxisMapping"  "4 5"
EndSection

Section "InputDevice"
Identifier "Touchpad"
Driver "synaptics"
#Option "SendCoreEvents"
Option "CorePointer"
Option "Device" "/dev/input/mouse0"
Option "Protocol" "auto-dev"

# Next line required only if you want to disable the mousepad while typing:
Option "SHMConfig" "on"

# The rest of the options are NOT required, just a default similar to the
# Windows drivers with non of the extra features.
Option "LeftEdge" "1900"
Option "RightEdge" "5400"
Option "TopEdge" "1400"
Option "BottomEdge" "4500"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "MaxDoubleTapTime" "180"
Option "ClickTime" "100"
Option "FastTaps" "0"
Option "EmulateMidButtonTime" "75"
Option "VertScrollDelta" "0"
Option "HorizScrollDelta" "0"
Option "MinSpeed" "0 .06"
Option "MaxSpeed" "0 .18"
Option "AccelFactor" "0 .001"
Option "EdgeMotionMinZ" "30"
Option "EdgeMotionMaxZ" "160"
Option "EdgeMotionMinSpeed" "1"
Option "EdgeMotionMaxSpeed" "400"
Option "EdgeMotionUseAlways" "0"
Option "UpDownScrolling" "1"
Option "TouchpadOff" "off"
Option "GuestMouseOff" "0"
Option "LockedDrags" "0"
Option "RTCornerButton" "2"
Option "RBCornerButton" "3"
Option "LTCornerButton" "0"
Option "LBCornerButton" "0"
Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"
Option "CircularScrolling" "1"
Option "CircScrollDelta" "0 .195"
Option "CircScrollTrigger" "0"
Option "CircularPad" "0"
Option "PalmDetect" "1"
Option "PalmMinWidth" "10"
Option "PalmMinZ" "200"
Option "CoastingSpeed" "0"
EndSection

Section "ServerLayout"
    Identifier  "Main Layout"
    Screen      "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Touchpad" "AlwaysCore"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Back to top
View user's profile Send private message
El Tazar
n00b
n00b


Joined: 06 Nov 2004
Posts: 57

PostPosted: Sun Feb 12, 2006 11:10 am    Post subject: Reply with quote

Changing

Code:
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc89"
EndSection


to:

Code:
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "microsoftinet"
EndSection


Will make X recognise the keypresses from the Thinkpad Forward and Backward buttons as XF86Forward and XF86Back respectively. This is done natively without the use of tpb. Only problem is that you now have the "M" word in your config file ;)

Really nice for controlling a music player or going between virtual desktops.
_________________
“If one does not know to which port one is sailing, no wind is favorable.” - Seneca
Back to top
View user's profile Send private message
El Tazar
n00b
n00b


Joined: 06 Nov 2004
Posts: 57

PostPosted: Sun Feb 12, 2006 11:14 am    Post subject: Reply with quote

My serverlayout for having the touchpad working is as follows

Code:
Section "ServerLayout"
    Identifier  "Server Layout"
    Screen      "Screen0"
    InputDevice "Touchpad" "CorePointer"
    InputDevice "Trackpoint" "CorePointer"
    InputDevice "External"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection


astrodelgato -> wouldn't this option

Code:
Option "TouchpadOff" "off"


do what it says, ie. turn the touchpad off thus explaining your problems?
_________________
“If one does not know to which port one is sailing, no wind is favorable.” - Seneca
Back to top
View user's profile Send private message
astrodelgato
n00b
n00b


Joined: 01 Jan 2004
Posts: 66
Location: Atlanta, GA

PostPosted: Sun Feb 12, 2006 2:18 pm    Post subject: Reply with quote

Quote:
astrodelgato -> wouldn't this option

Code:
Option "TouchpadOff" "off"


do what it says, ie. turn the touchpad off thus explaining your problems?


I copied that option from one of the posts on the first page, but I think I mistakenly put "off" instead of "1". Changing that and also disabling that option doesn't seem to have any effect, though.

Per your config, I just changed my Touchpad to "CorePointer" instead of "AlwaysCore" and it worked...for a minute or so. I launched Firefox and then after that the Touchpad wouldn't respond any more. I tested this several more times and as soon as Firefox comes up, the cursor sticks.
Back to top
View user's profile Send private message
El Tazar
n00b
n00b


Joined: 06 Nov 2004
Posts: 57

PostPosted: Sun Feb 12, 2006 5:37 pm    Post subject: Reply with quote

Here's the full file then

Code:
# **********************************************************************
# DRI Section
# **********************************************************************
Section "dri"
# Access to OpenGL ICD is allowed for all users:
    Mode 0666
# Access to OpenGL ICD is restricted to a specific user group:
#    Group 100    # users
#    Mode 0660
EndSection

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"
    Load        "dbe"     # Double buffer extension
    Load "synaptics"

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the Type1 and FreeType font modules
    Load        "type1"
    Load        "freetype"

# This loads the GLX module
    Load        "glx"   # libglx.a
    Load        "dri"   # libdri.a

EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.

    RgbPath   "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
#
# If you don't have a floating point coprocessor and emacs, Mosaic or other
# programs take long to start up, try moving the Type1 and Speedo directory
# to the end of this list (or comment them out).
#

   FontPath    "/usr/share/fonts/misc:unscaled"
   FontPath    "/usr/share/fonts/Type1"
   #FontPath    "/usr/share/fonts/X"
   FontPath    "/usr/share/fonts/TTF"
   FontPath    "/usr/share/fonts/corefonts"
   FontPath    "/usr/share/fonts/freefont"
   FontPath    "/usr/share/fonts/sharefonts"
   FontPath    "/usr/share/fonts/terminus"
   FontPath    "/usr/share/fonts/ttf-bitstream-vera"
   #FontPath    "/usr/share/fonts/unifont"
   FontPath    "/usr/share/fonts/75dpi:unscaled"
   FontPath    "/usr/share/fonts/100dpi:unscaled"
   FontPath    "/usr/share/fonts/artwiz"
   FontPath    "/opt/Mathematica5.0/SystemFiles/Fonts/Type1"
   FontPath    "/opt/Mathematica5.0/SystemFiles/Fonts/Common/Type1:unscaled"
   FontPath    "/opt/Mathematica5.0/SystemFiles/Fonts/AFM:unscaled"
   FontPath    "/opt/Mathematica5.0/SystemFiles/Fonts/BDF:unscaled"

   FontPath     "/usr/share/fonts/misc/"
   FontPath     "/usr/share/fonts/CID/"
   FontPath      "/usr/share/fonts/Speedo/"

# The module search path.  The default path is shown here.

#    ModulePath "/usr/X11R6/lib/modules"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is
# received.  This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

#    Option "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

#    Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

#    Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client.

#    Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings.

#    Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option "AllowNonLocalModInDev"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier   "Keyboard1"
    Driver   "kbd"
# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.

#    Option "Protocol"   "Xqueue"

    Option "AutoRepeat" "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option "Xleds"      "1 2 3"

#    Option "LeftAlt"    "Meta"
#    Option "RightAlt"   "ModeShift"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#    Option "XkbModel"   "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#    Option "XkbModel"   "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#    Option "XkbLayout"  "de"
# or:
#    Option "XkbLayout"  "de"
#    Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#    Option "XkbOptions" "ctrl:swapcaps"

# These are the default XKB settings for XFree86
#    Option "XkbRules"   "xfree86"

#    Option "XkbVariant" ""
#    Option "XkbOptions" ""

#    Option "XkbDisable"

    Option "XkbRules"   "xfree86"
    #Option   "XkbModel" "pc89"
    Option   "XkbModel" "microsoftinet"
    Option "XkbLayout"   "dk"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"
    Identifier   "Trackpoint"
    Driver "mouse"
    Option "SendCoreEvents"
    Option "Protocol" "ExplorerPS/2"
    Option "Device" "/dev/input/mouse1"
EndSection

Section "InputDevice"
    Identifier   "External"
    Driver "mouse"
    Option "SendCoreEvents"
    Option "Protocol" "Auto"
    Option "Device" "/dev/input/mouse2"
    #Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
   Identifier "Touchpad"
   Driver "synaptics"
   Option "SendCoreEvents"
   Option "Device" "/dev/input/event1"
   Option "Protocol" "event"
   # Next line required only if you want to disable the mousepad while typing:
   Option "SHMConfig" "on"
   # The rest of the options are NOT required, just a default similar to the Windows drivers with non of the extra features.
   Option "LeftEdge" "1900"
   Option "RightEdge" "5400"
   Option "TopEdge" "1400"
   Option "BottomEdge" "4500"
   Option "FingerLow" "25"
   Option "FingerHigh" "30"
   Option "MaxTapTime" "180"
   Option "MaxTapMove" "220"
   Option "VertScrollDelta" "100"
   Option "MinSpeed" "0.02"
   Option "MaxSpeed" "0.18"
   Option "AccelFactor" "0.0010"
   Option "CircularScrolling"          "1"
   Option "CircScrollDelta"            "0.1"
   Option "CircScrollTrigger"          "7"
   Option "HorizScrollDelta" "0"
EndSection
# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"
    Identifier  "Monitor0"
    HorizSync   31.5 - 91.1
    VertRefresh 20 - 60
    Option "DPMS"

# === mode lines based on GTF ===
# VGA @ 100Hz
# Modeline "640x480@100" 43.163 640 680 744 848 480 481 484 509 +hsync +vsync
# SVGA @ 100Hz
# Modeline "800x600@100" 68.179 800 848 936 1072 600 601 604 636 +hsync +vsync
# XVGA @ 100Hz
# Modeline "1024x768@100" 113.309 1024 1096 1208 1392 768 769 772 814 +hsync +vsync
# 1152x864 @ 60Hz
# Modeline "1152x864@60" 81.642 1152 1216 1336 1520 864 865 868 895 +hsync +vsync
# 1152x864 @ 85Hz
# Modeline "1152x864@85" 119.651 1152 1224 1352 1552 864 865 868 907 +hsync +vsync
# 1152x864 @ 100Hz
# Modeline "1152x864@100" 143.472 1152 1232 1360 1568 864 865 868 915 +hsync +vsync
# 1280x960 @ 75Hz
# Modeline "1280x960@75" 129.859 1280 1368 1504 1728 960 961 964 1002 +hsync +vsync
# 1280x960 @ 100Hz
# Modeline "1280x960@100" 178.992 1280 1376 1520 1760 960 961 964 1017  +hsync +vsync
# SXGA @ 100Hz
# Modeline "1280x1024@100" 190.960 1280 1376 1520 1760 1024 1025 1028 1085 +hsync +vsync
# SPEA GDM-1950 (60Hz,64kHz,110MHz,-,-): 1280x1024 @ V-freq: 60.00 Hz, H-freq: 63.73 KHz
# Modeline "GDM-1950"  109.62  1280 1336 1472 1720  1024 1024 1026 1062 -hsync -vsync
# 1600x1000 @ 60Hz
# Modeline "1600x1000" 133.142 1600 1704 1872 2144 1000 1001 1004 1035 +hsync +vsync
# 1600x1000 @ 75Hz
# Modeline "1600x1000" 169.128 1600 1704 1880 2160 1000 1001 1004 1044 +hsync +vsync
# 1600x1000 @ 85Hz
# Modeline "1600x1000" 194.202 1600 1712 1888 2176 1000 1001 1004 1050 +hsync +vsync
# 1600x1000 @ 100Hz
# Modeline "1600x1000" 232.133 1600 1720 1896 2192 1000 1001 1004 1059 +hsync +vsync
# 1600x1024 @ 60Hz
# Modeline "1600x1024" 136.385 1600 1704 1872 2144 1024 1027 1030 1060 +hsync +vsync
# 1600x1024 @ 75Hz
# Modeline "1600x1024" 174.416 1600 1712 1888 2176 1024 1025 1028 1069 +hsync +vsync
# 1600x1024 @ 76Hz
# Modeline "1600x1024" 170.450 1600 1632 1792 2096 1024 1027 1030 1070 +hsync +vsync
# 1600x1024 @ 85Hz
# Modeline "1600x1024" 198.832 1600 1712 1888 2176 1024 1027 1030 1075 +hsync +vsync
# 1920x1080 @ 60Hz
# Modeline "1920x1080" 172.798 1920 2040 2248 2576 1080 1081 1084 1118 -hsync -vsync
# 1920x1080 @ 75Hz
# Modeline "1920x1080" 211.436 1920 2056 2264 2608 1080 1081 1084 1126 +hsync +vsync
# 1920x1200 @ 60Hz
# Modeline "1920x1200" 193.156 1920 2048 2256 2592 1200 1201 1203 1242 +hsync +vsync
# 1920x1200 @ 75Hz
# Modeline "1920x1200" 246.590 1920 2064 2272 2624 1200 1201 1203 1253 +hsync +vsync
# 2048x1536 @ 60
# Modeline "2048x1536" 266.952 2048 2200 2424 2800 1536 1537 1540 1589 +hsync +vsync
# 2048x1536 @ 60
# Modeline "2048x1536" 266.952 2048 2200 2424 2800 1536 1537 1540 1589 +hsync +vsync
# 1400x1050 @ 60Hz M9 Laptop mode
# ModeLine "1400x1050" 122.000 1400 1488 1640 1880 1050 1052 1064 1082 +hsync +vsync
# 1920x2400 @ 25Hz for IBM T221, VS VP2290 and compatible display devices
# Modeline "1920x2400@25" 124.620 1920 1928 1980 2048 2400 2401 2403 2434 +hsync +vsync
# 1920x2400 @ 30Hz for IBM T221, VS VP2290 and compatible display devices
# Modeline "1920x2400@30" 149.250 1920 1928 1982 2044 2400 2402 2404 2434 +hsync +vsync

EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

# === ATI device section ===

Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
# ### generic DRI settings ###
# === disable PnP Monitor  ===
    #Option                              "NoDDC"
# === disable/enable XAA/DRI ===
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
# === misc DRI settings ===
    Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr
# ### FireGL DDX driver module specific settings ###
# === Screen Management ===
    Option "DesktopSetup"               "0x00000100"
    Option "MonitorLayout"              "AUTO, NONE"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "unspecified"
    Option "VRefresh2"                  "unspecified"
    Option "ScreenOverlap"              "0"
# === TV-out Management ===
    Option "NoTV"                       "yes"     
    Option "TVStandard"                 "NTSC-M"     
    Option "TVHSizeAdj"                 "0"     
    Option "TVVSizeAdj"                 "0"     
    Option "TVHPosAdj"                  "0"     
    Option "TVVPosAdj"                  "0"     
    Option "TVHStartAdj"                "0"     
    Option "TVColorAdj"                 "0"     
    Option "GammaCorrectionI"           "0x00000000"
    Option "GammaCorrectionII"          "0x00000000"
# === OpenGL specific profiles/settings ===
    Option "Capabilities"               "0x00000000"
# === Video Overlay for the Xv extension ===
    Option "VideoOverlay"               "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
#       will be disabled automatically
    Option "OpenGLOverlay"              "off"
# === Center Mode (Laptops only) ===
    Option "CenterMode"                 "off"
# === Pseudo Color Visuals (8-bit visuals) ===
    Option "PseudoColorVisuals"         "off"
# === QBS Management ===
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
# === FSAA Management ===
    Option "FSAAEnable"                 "no"
    Option "FSAAScale"                  "1"
    Option "FSAADisableGamma"           "no"
    Option "FSAACustomizeMSPos"         "no"
    Option "FSAAMSPosX0"                "0.000000"
    Option "FSAAMSPosY0"                "0.000000"
    Option "FSAAMSPosX1"                "0.000000"
    Option "FSAAMSPosY1"                "0.000000"
    Option "FSAAMSPosX2"                "0.000000"
    Option "FSAAMSPosY2"                "0.000000"
    Option "FSAAMSPosX3"                "0.000000"
    Option "FSAAMSPosY3"                "0.000000"
    Option "FSAAMSPosX4"                "0.000000"
    Option "FSAAMSPosY4"                "0.000000"
    Option "FSAAMSPosX5"                "0.000000"
    Option "FSAAMSPosY5"                "0.000000"
# === Misc Options ===
    Option "UseFastTLS"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "yes"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"    # vendor=1002, device=4e50
    Screen 0
    Option "DynamicClocks" "on"
EndSection

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
    Identifier  "Screen0"
    Device      "ATI Graphics Adapter"
    Monitor     "Monitor0"
    DefaultDepth 24
    #Option "backingstore"

    Subsection "Display"
        Depth       24
        Modes       "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0 
    EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"
    Identifier  "Server Layout"
    Screen "Screen0"
    InputDevice "Touchpad" "CorePointer"
    InputDevice "Trackpoint" "CorePointer"
    InputDevice "External"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

_________________
“If one does not know to which port one is sailing, no wind is favorable.” - Seneca
Back to top
View user's profile Send private message
astrodelgato
n00b
n00b


Joined: 01 Jan 2004
Posts: 66
Location: Atlanta, GA

PostPosted: Mon Feb 13, 2006 6:22 pm    Post subject: Reply with quote

Thanks for posting your config. I copied your settings and now it works. I'm not certain, but the issue might have been that some of the options, which I copied from a post on the first page of this thread, had spaces in the values that probably shouldn't have been there.
Back to top
View user's profile Send private message
stormer
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2002
Posts: 122
Location: Canada

PostPosted: Sat Mar 04, 2006 10:54 am    Post subject: TV OUT From ACPI Reply with quote

Hi, I've been working on TV_OUT on my T42 using radeon 7500. This is not completly suported yet but maybe some people will be intrested.

First you nead old atitvout
Code:
emerge atitvout


Then prepare a new Xorg config file that uses vesa driver with a 640x480 resolution (don't try 1024x768, vesa is too slow).
The reason we need vesa is because Xorg accelerated radeon driver deactivate video switching (Still need to seek this code to see what we can do).

Then make sure you are sudoer (visudo) and you can start any movie on TV screen using this script :
Code:
#!/bin/bash
#
# Script used to play movie on TV using ATI Radeon 7500
#

TV_DISPLAY=10

(sudo X -br -config /etc/X11/xorg.conf.tv :$TV_DISPLAY &)
export DISPLAY=:$TV_DISPLAY
sleep 3
( xine -f -g $1 &)
sleep 3
sudo atitvout -f t


Note you'll need Xine if you do not costumized this script. When done, hit CTRL-BKSPC and visual will be restored on you LCD.

I've tried lot of LRMI calls, but for now I'm still unable to find a patch that allow clone display on both LCD and TV. At least I know this is possible since this was case in M$t Windows. Other issue, ACPI do not provide routine to activate of deactivate TV (DSTD returns doing nothing . . .). For now I've patch ibm_acpi to show up tv display status.

If anyone have some technical information that he is allowed to share, this would be appreciate.
_________________
Stormer :)
Back to top
View user's profile Send private message
icantux
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2005
Posts: 122

PostPosted: Thu Mar 09, 2006 2:35 am    Post subject: Reply with quote

Hello all,

Is there a nice acpi event script to control some of the function keys (Fn-F3, Fn-F4, Fn-F5 wifi control, and lid)? I've been looking all over and can't find any consistency.

I was thinking of just using the event scripts (/etc/acpi) from Ubuntu (I love how the Fn buttons "just work" in Ubuntu!!) until I realized that the scripts point to all sorts of directories and "extras" that aren't on my machine and I'm not sure where to look for substitute modules (right word? ) ...

... for example:

the ubuntu script for blanking the screen (blankscreen.sh) is simple enough (I think - I have no idea how to write this stuff, except to explain to others how to make something work), but it's useless on my gentoo lappy.
Code:

#!/bin/bash

. /etc/default/acpi-support
. /usr/share/acpi-support/power-funcs

for x in /tmp/.X11-unix/*; do
    displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
    getXuser;
    if [ x"$XAUTHORITY" != x"" ]; then
        export DISPLAY=":$displaynum"
   . /usr/share/acpi-support/screenblank
    fi
done


.... no "acpi-support" on gentoo ...

Any pointers for a "default.sh" that would do the F3, F4, F5 and F12 keys and lid open/close? I'd settle for only F3 and F4 at this point!!

Any thoughts on the script gurus here to "tweak" the Ubuntu code there and make some "generic" code available here for ThinkPad users (at gentoo docs)?
Back to top
View user's profile Send private message
stormer
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2002
Posts: 122
Location: Canada

PostPosted: Thu Mar 09, 2006 4:13 am    Post subject: ACPI Script Reply with quote

Hi,

there is the one I wrote :

Note: You need radeontools, ibm-acpi (in kernel), hibernate-script and acpid running

First in /etc/conf.d/local.start
Code:
# Activate ACPI hotkeys
echo 0x8DC > /proc/acpi/ibm/hotkey
echo enable > /proc/acpi/ibm/hotkey


Then in /etc/acpi/events/ibm_hotkey
Code:
# IBM hotkey
event=ibm[ /]hotkey.*
action=/etc/acpi/actions/hotkey.sh %e


Then in /etc/acpi/actions/hotkey.sh
Code:
#!/bin/sh
set $*

case "$4" in
        00001003) # Standby
            /etc/acpi/actions/suspend.sh
            ;;
        00001004) # Sleep
            /etc/acpi/actions/sleep.sh
            ;;
        00001005) # Wireless
            if [ "`iwconfig eth1 | grep \"Tx-Power=off\"`" == "" ]
            then
                    /etc/init.d/net.eth1 stop
                    iwconfig eth1 txpower off
            else
                    iwconfig eth1 txpower on
                    /etc/init.d/net.eth1 start
            fi
            ;;
        00001007) # Switch video output (need BIOSHotkey enabled in Xorg)
            echo video_switch > /proc/acpi/ibm/video
            ;;
        00001008) # Expand
            echo expand_toggle > /proc/acpi/ibm/video
            ;;
        0000100c) # Hibernate
            /etc/acpi/actions/hibernate.sh
            ;;
        *) # Unknown
            logger "IBM Hotkey $4 is not supported."
            ;;
esac


Finally to hibernate and suspend

In /etc/acpi/actions/hibernate.sh
Code:

#!/bin/bash

# Do not sleep while shuting down
RUNLEVEL=`/sbin/runlevel | gawk -F" " '{ print $2 }'`
case $RUNLEVEL in
        [06])
            HIBERNATE="false"
            ;;
        *)
            HIBERNATE="true"
            ;;
esac

[ -f /tmp/hibernate_active ] && HIBERNATE="false"

# If it is time, do the job
if [ "$HIBERNATE" == "true" ]; then
        touch /tmp/hibernate_active
        /usr/sbin/hibernate
        /usr/sbin/laptop_mode auto
        rm -f /tmp/hibernate_active
fi


In /etc/acpi/actions/sleep.sh
Code:

#!/bin/bash

# Do not sleep while shuting down
RUNLEVEL=`/sbin/runlevel | gawk -F" " '{ print $2 }'`
case $RUNLEVEL in
        [06])
            SLEEP="false"
            ;;
        *)
            SLEEP="true"
            ;;
esac

# Do not sleep while going to hibernate
if [ -f "/tmp/hibernate_active" ]; then
        SLEEP="false"
fi

# Do not sleep if asked to
if [ -f "/tmp/no_sleep" ]; then
        SLEEP="false"
fi

# If it is time, do the job
if [ "$SLEEP" == "true" ]; then
        /sbin/cardctl suspend
        /usr/sbin/laptop_mode stop
        /usr/sbin/hibernate-sleep
        /usr/sbin/laptop_mode auto
        /sbin/cardctl resume
else
        /etc/acpi/actions/suspend.sh
fi



In /etc/acpi/actions/suspend.sh
Code:
#!/bin/bash

if [ -f /tmp/light_off ]
then
        radeontool light on
        rm -rf /tmp/light_off
else
        radeontool light off
        touch /tmp/light_off
fi

_________________
Stormer :)
Back to top
View user's profile Send private message
icantux
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2005
Posts: 122

PostPosted: Thu Mar 09, 2006 5:58 am    Post subject: Reply with quote

Sweet! Thanks very much. I'll give this a whirl and let you know how it turns out! :)
Back to top
View user's profile Send private message
gen24all
n00b
n00b


Joined: 16 Mar 2006
Posts: 1

PostPosted: Thu Mar 16, 2006 4:41 pm    Post subject: Re: ACPI Script Reply with quote

stormer wrote:

# If it is time, do the job
if [ "$SLEEP" == "true" ]; then
/sbin/cardctl suspend
/usr/sbin/laptop_mode stop
/usr/sbin/hibernate-sleep
/usr/sbin/laptop_mode auto
/sbin/cardctl resume
else
/etc/acpi/actions/suspend.sh
fi



Does that even exist?

I am using /usr/sbin/hibernate-ram and my laptop goes into suspend mode and wakes up "immediately". Any ideas why this could be happening?

Thanks.
Back to top
View user's profile Send private message
icantux
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2005
Posts: 122

PostPosted: Sun Mar 19, 2006 4:21 pm    Post subject: Reply with quote

Hmm... I just looked through my /usr/sbin directory and I don't have any of the mentioned hibernate features even listed there. No "laptop_mode", no "hibernate-ram" or "hibernate-sleep" ... something I need to emerge?

EDIT: scratch that... figured out I needed to emerge "laptop-mode-tools" and "hibernate-script" ... Now to test those scripts
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
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
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