You are not logged in.

#1 2009-12-01 14:55:18

katzen
Member
From: London
Registered: 2008-03-18
Posts: 88

New laptop, some questions (compiz and suspend)

I've just bought a thinkpad t400s and I already love it. I've got two problems anyway...

-The first thing is that I can't start compiz. When I try to run fusion-icon, the system gets incredibly slow and I have to kill x.
Here is my xorg.conf file:

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/TTF"
    FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
    Load  "record"
    Load  "extmod"
    Load  "dri"
    Load  "glx"
    Load  "dbe"
    Load  "dri2"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

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

Section "Monitor"
    Identifier   "Monitor0"
    VendorName   "Monitor Vendor"
    ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "ColorKey"               # <i>
        #Option     "CacheLines"             # <i>
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "DRI"                    # [<bool>]
        #Option     "NoDDC"                  # [<bool>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "XvMCSurfaces"           # <i>
        #Option     "PageFlip"               # [<bool>]
    Identifier  "Card0"
    Driver      "intel"
    VendorName  "Intel Corporation"
    BoardName   "Mobile 4 Series Chipset Integrated Graphics Controller"
    BusID       "PCI:0:2:0"
    Option      "DRI"                    "True"
    Option      "NoDDC"                  "True"
    Option      "EnablePageFlip"         "True"
    Option      "RenderAccel"            "True"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

Section "Extensions"
   Option "Composite" "Enable"
EndSection

- I have installed pm-utils and I can suspend the laptop with sudo pm-suspend.
I have also installed the gnome power manager, but the problem is that the laptop doesn't suspend when I close it.


Thanks in advance,
Francesco

Last edited by katzen (2009-12-01 16:16:51)

Offline

#2 2009-12-01 17:10:48

miau
Member
Registered: 2009-05-06
Posts: 202

Re: New laptop, some questions (compiz and suspend)

For the suspend problem, you could edit handler.sh file in /etc/acpi. Your compiz problems could be solved, when you enable KMS

Last edited by miau (2009-12-01 17:11:51)

Offline

#3 2009-12-01 17:30:43

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: New laptop, some questions (compiz and suspend)

For compiz: Are you using KMS? Without KMS, on my laptop with the same graphic chip I had to select indirect rendering (from the compiz icon), otherwise it would run real slow.

Offline

#4 2009-12-01 18:46:57

katzen
Member
From: London
Registered: 2008-03-18
Posts: 88

Re: New laptop, some questions (compiz and suspend)

ok, I've activated ms and it starts up, but if I select the compiz window manager windows borders disappear and I have to select metacity again.
I don't really remember how it worked, but if I try to select some effects with the metacity manager nothing changes.

I'll try to search something about handler.sh too.

Thanks a lot for the help!

Offline

#5 2009-12-01 19:47:42

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 858
Website

Re: New laptop, some questions (compiz and suspend)

You may want compiz-decorator-gtk or emerald for compiz window borders.

Offline

#6 2009-12-01 19:56:25

miau
Member
Registered: 2009-05-06
Posts: 202

Re: New laptop, some questions (compiz and suspend)

In the handler file, there you can find a section about button,lid, there you must insert the suspend command.

Offline

#7 2009-12-02 00:06:32

katzen
Member
From: London
Registered: 2008-03-18
Posts: 88

Re: New laptop, some questions (compiz and suspend)

miau wrote:

In the handler file, there you can find a section about button,lid, there you must insert the suspend command.

I just checked, and I've got no /etc/acpi directory... sorry for the ignorance, but I've used a mac for a year and apparently it made me dumb

*Edit: ok, the acpi instrusctions on the wiki for the macbook worked for me too, now it works perfectly (:

tavianator wrote:

You may want compiz-decorator-gtk or emerald for compiz window borders.

It doesn't seem to work... the truth is that metacity is perfectly fine for me, I just wanted to use compiz effects but when I enable them in the compiz settings manager nothing happens.

Last edited by katzen (2009-12-02 00:57:00)

Offline

#8 2009-12-02 01:05:00

miau
Member
Registered: 2009-05-06
Posts: 202

Re: New laptop, some questions (compiz and suspend)

katzen wrote:

*Edit: ok, the acpi instrusctions on the wiki for the macbook worked for me too, now it works perfectly (:

smile

katzen wrote:

It doesn't seem to work... the truth is that metacity is perfectly fine for me, I just wanted to use compiz effects but when I enable them in the compiz settings manager nothing happens.

If you select Metacity you are not using Compiz as your WM. So you must install Emerald or Compiz-decorator-gtk and select one of those to use with compiz.

Last edited by miau (2009-12-02 01:05:56)

Offline

#9 2009-12-02 02:49:46

M177ER
Member
Registered: 2008-06-15
Posts: 148

Re: New laptop, some questions (compiz and suspend)

katzen wrote:

ok, I've activated ms and it starts up, but if I select the compiz window manager windows borders disappear and I have to select metacity again.
I don't really remember how it worked, but if I try to select some effects with the metacity manager nothing changes.

I'll try to search something about handler.sh too.

Thanks a lot for the help!

From the wiki - you have to active 'window decoration':

Activate important plugins!
    Before you do anything else, you might want to check if the plugins that provide basic window manager behaviour are activated or you will have no possibility to drag, scale or close windows as soon as compiz is activated. Among those plugins are "Window Decoration" under Effects and "Move Window" & "Resize Window" under Window Management. (ccsm may be used to achieve this.)

Offline

#10 2009-12-02 09:33:38

katzen
Member
From: London
Registered: 2008-03-18
Posts: 88

Re: New laptop, some questions (compiz and suspend)

Activate important plugins!
    Before you do anything else, you might want to check if the plugins that provide basic window manager behaviour are activated or you will have no possibility to drag, scale or close windows as soon as compiz is activated. Among those plugins are "Window Decoration" under Effects and "Move Window" & "Resize Window" under Window Management. (ccsm may be used to achieve this.)

I tried but nothing changes.
I don't think that's my problem, I can resize and scale windows when I activate effects.

Offline

#11 2009-12-02 12:14:29

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: New laptop, some questions (compiz and suspend)

What does not work, then? Emerald is compiz window decorator, if you want to stick with the gtk/metacity one, install Compiz-decorator-gtk and select it from the fusion icon window decorator menu.

Offline

#12 2009-12-02 13:23:01

katzen
Member
From: London
Registered: 2008-03-18
Posts: 88

Re: New laptop, some questions (compiz and suspend)

hokasch wrote:

What does not work, then? Emerald is compiz window decorator, if you want to stick with the gtk/metacity one, install Compiz-decorator-gtk and select it from the fusion icon window decorator menu.

It's quinte simple, when I activate any effects, it doesn't work.

Offline

#13 2009-12-02 14:18:05

miau
Member
Registered: 2009-05-06
Posts: 202

Re: New laptop, some questions (compiz and suspend)

Have you tried compiz-check from AUR to see if there are any incompatibilities on your machine with Compiz. What is the output if you start compiz and then type

emerald --replace

in a terminal?

Offline

#14 2009-12-02 14:52:15

katzen
Member
From: London
Registered: 2008-03-18
Posts: 88

Re: New laptop, some questions (compiz and suspend)

miau wrote:

Have you tried compiz-check from AUR to see if there are any incompatibilities on your machine with Compiz. What is the output if you start compiz and then type

emerald --replace

in a terminal?

Nothing happens...

Offline

#15 2009-12-02 15:32:24

miau
Member
Registered: 2009-05-06
Posts: 202

Re: New laptop, some questions (compiz and suspend)

Sure you have emerald installed?

Offline

#16 2009-12-02 15:39:43

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: New laptop, some questions (compiz and suspend)

It's quinte simple, when I activate any effects, it doesn't work.

dead simple, indeed wink

+1 for compiz-check scripts, helped me a lot when setting up compiz.

Metacity has its own composition manager, should that one be active you have to disable it first. If my memory serves me right that was the the case for me, resulting in similar problems.

Offline

#17 2009-12-02 15:48:34

katzen
Member
From: London
Registered: 2008-03-18
Posts: 88

Re: New laptop, some questions (compiz and suspend)

miau wrote:

Sure you have emerald installed?

ok, I'm officially an idiot tongue
that was the problem, I thought that everything was included in the pacman package.

Offline

Board footer

Powered by FluxBB