LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Two problems: Resolution and shutdown (https://www.linuxquestions.org/questions/debian-26/two-problems-resolution-and-shutdown-86729/)

corwax 08-28-2003 03:58 PM

Two problems: Resolution and shutdown
 
I've been configuring my new Debian 3.0r1 woody for the last couple of days, and now there are only two problems left:

1. When I start X (startx-command), the screen resolution is a bit strange. It is kind of zoomed in on the upper left corner, and I have to press Ctrl+Alt+(-) to get the proper screen. It is not a big problem, but I'd really like to fix this.

2. When I shut down the computer ("init 0" or "shutdown -h now"), the power-supply doesn't turn itself off automaticly. I have to manually press the power-button to turn the computer off. A bit annoying, but not a big problem.

Does anyone know how to fix any of these "problems"? I would be really grateful :)

Kermet 08-28-2003 04:12 PM

Re: Two problems: Resolution and shutdown
 
Quote:

Originally posted by corwax
I've been configuring my new Debian 3.0r1 woody for the last couple of days, and now there are only two problems left:

1. When I start X (startx-command), the screen resolution is a bit strange. It is kind of zoomed in on the upper left corner, and I have to press Ctrl+Alt+(-) to get the proper screen. It is not a big problem, but I'd really like to fix this.

maybe an erroneus resolution that you set manually? :confused:

Quote:

2. When I shut down the computer ("init 0" or "shutdown -h now"), the power-supply doesn't turn itself off automaticly. I have to manually press the power-button to turn the computer off. A bit annoying, but not a big problem.

Does anyone know how to fix any of these "problems"? I would be really grateful :)
I've the same problem!anyone knows the solution?

redcane 08-28-2003 08:55 PM

The soft-off function uses ACPI or (can't remember the name of the other power management scheme).

You need to have this supported in the kernel. Once the kernel has finished it's shutdown, it will issue the power off using the power management functions of your hardware if the kernel has support for it.

Which kernel are you using?

pferdekaemper 08-29-2003 04:20 AM

Re: Two problems: Resolution and shutdown
 
[QUOTE]Originally posted by corwax
[B]I've been configuring my new Debian 3.0r1 woody for the last couple of days, and now there are only two problems left:

2. When I shut down the computer ("init 0" or "shutdown -h now"), the power-supply doesn't turn itself off automaticly. I have to manually press the power-button to turn the computer off. A bit annoying, but not a big problem.


Hi,
I had the some problem until yesterday. The following did work:
(With kernel 2.4.20 and ECS K7S5A)
- Make sure that ACPI is switched on in BIOS setup.
- Make new kernel with ACPI support (in make menuconfig in "General setup". Also include ACPI Bus manager, System, Processor and Button.
- (Do not forget to switch on the modules with modconf or similar, if compiled as modules.)
- Perhaps you have to switch on the experimental parts in "Code maturity options..."

Then, halt, poweroff or shutdown -h should switch the computer off...

The following did NOT work:
- using APM did not work. Make sure that the APM module is not loaded / included in the kernel. It even did not work with "Power off in real mode"
- switching off ACPI in my BIOS did not work

Regards,
Thorsten

corwax 08-29-2003 09:25 AM

Thanks for your help, guys!

I've got kernel 2.4.18-bf.24. Yeah, I know I should have compiled my own, but when (nearly) everything seemed to work, I decided to keep it.

I'll try your suggestions!

pe2338 08-29-2003 10:50 AM

Re: Two problems: Resolution and shutdown
 
Quote:

Originally posted by corwax
I've been configuring my new Debian 3.0r1 woody for the last couple of days, and now there are only two problems left:

1. When I start X (startx-command), the screen resolution is a bit strange. It is kind of zoomed in on the upper left corner, and I have to press Ctrl+Alt+(-) to get the proper screen. It is not a big problem, but I'd really like to fix this.

Look for the lines SubSection "Display"
in the /etc/X11/XF86Config-4 file or the older format file /etc/X11/XF86Config and make sure the first resolution is the one u desire ;)

In my case :
Code:

Section "Screen"
        Identifier        "Default Screen"
        Device                "NVidia GeForce2 MX/MX400"
        Monitor                "Visa LR8750"
        DefaultDepth        24
        SubSection "Display"
                Depth                1
                Modes                "1024x768" "800x600"
        EndSubSection
        SubSection "Display"
                Depth                4
                Modes                "1024x768" "800x600"
        EndSubSection
        SubSection "Display"
                Depth                8
                Modes                "1024x768" "800x600"
        EndSubSection
        SubSection "Display"
                Depth                15
                Modes                "1024x768" "800x600"
        EndSubSection
        SubSection "Display"
                Depth                16
                Modes                "1024x768" "800x600"
        EndSubSection
        SubSection "Display"
                Depth                24
                Modes                "1024x768" "800x600"
        EndSubSection
EndSection

As u can easily see the 1024x768 resolution is always present on the first position.This is the default res-i mean the first.

In your case it might be the other way around.. ;)

corwax 08-30-2003 11:17 AM

Thank you, pe2338! Now everything works! (WOW)

pe2338 08-30-2003 02:48 PM

No problem! Everything for the linux comunity ;)

carstenbjensen 08-31-2003 12:21 PM

Re: Two problems: Resolution and shutdown
 
Quote:

Originally posted by corwax
[B
2. When I shut down the computer ("init 0" or "shutdown -h now"), the power-supply doesn't turn itself off automaticly. I have to manually press the power-button to turn the computer off. A bit annoying, but not a big problem.
[/B]
I found, that it's really easy (no need to recompile the kernel) to get soft-off to work...
I initially played a little around with it, but I found that if you just install 'apmd' (and the dependencies...) it works just fine.. :)

Carsten B. Jensen


All times are GMT -5. The time now is 01:11 AM.