DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th January 2015
batence's Avatar
batence batence is offline
New User
 
Join Date: Jan 2015
Posts: 8
Default How to power off Display?

Hello there folks,
fist I want to say, it's nice to meet you all

So I installed NetBSD on my old Laptop Compaq Presario 2500, with Intel Pentium IV 2,6GHz, 512 RAM and 80GB HDD. And becouse I don't want to waste my ram with X, I don't install it. But my problem is here: the monitor/display do not power off, just stay and blinking. First I can't manage the resolution of console, but i slove this. Make some search in Google and find that, in /boot.cfg add
menu=Boot normally:rndseed /var/db/entropy-file;vesa 1024x768x32;boot netbsd
and is good, But the Display don't power off after some time idle. Do someone know about this ? How can I slove it whitout installing an X ?

Cheers!
Reply With Quote
  #2   (View Single Post)  
Old 4th January 2015
darktrym's Avatar
darktrym darktrym is offline
standard-bearer
 
Join Date: Feb 2011
Location: Düsseldorf
Posts: 106
Default

Have you tested the command which are used in the powerd/lid_switch and running powerd on your system?
Reply With Quote
  #3   (View Single Post)  
Old 4th January 2015
batence's Avatar
batence batence is offline
New User
 
Join Date: Jan 2015
Posts: 8
Default

Yes ofcourse ... nothing's happen. Look I just will not start this thread if I had a power button or stick to turn on/off the display, but I don't.
Reply With Quote
  #4   (View Single Post)  
Old 4th January 2015
muflon muflon is offline
Fdisk Soldier
 
Join Date: Jul 2013
Location: Poland
Posts: 56
Default

Read screenblank(1) man page. By default is set to 600 seconds (10 minutes).
Reply With Quote
  #5   (View Single Post)  
Old 4th January 2015
fusilli's Avatar
fusilli fusilli is offline
New User
 
Join Date: Dec 2014
Posts: 5
Default

You might reconsider running X at a lower resolution and/or with a lightweight tiling window manager; I'm able to do this on a 533 MHz Via box with 512MB RAM and it seems just fine with a few XTerm windows, especially if you use screen or tmux.

Regarding the display: you might check for options in the BIOS to use instead of the ACPI stuff, and/or using a display OFF function key if available. Most laptops at least have a display switcher for use with external monitors; that can sort of act as a display toggle for you.

Good luck!
Reply With Quote
  #6   (View Single Post)  
Old 5th January 2015
batence's Avatar
batence batence is offline
New User
 
Join Date: Jan 2015
Posts: 8
Default

Thanks for solutions you give, but ... screenblank(1) is only make screen blank, don't turn off it. Screen still have a background light. I look in all the BIOS and there's no option for display. Another thing - I don't have power off button for display only, I don't have switch button for display too ... and don't wanna run any X. I can run xdm, it's a kind of X Login screen, whitout run X, but this is not a solution - this is avoidance of the problem. I think maybe with ACPI stuff I can do something, but ... I don't find a way. Here is my sysctl acpi output:

Quote:
# sysctl hw.acpi
hw.acpi.root = 1010352
hw.acpi.sleep.state = 0
hw.acpi.sleep.states = S0 S3 S4 S5
hw.acpi.sleep.beep = 0
hw.acpi.sleep.vbios = 1
hw.acpi.stat.gpe = 0
hw.acpi.stat.sci = 0
hw.acpi.stat.fixed = 0
hw.acpi.stat.method = 8535
hw.acpi.wake.pchb0 = 0
hw.acpi.wake.sip0 = 0
hw.acpi.wake.acpilid0 = 1
hw.acpi.acpivga0.bios_switch = 1
hw.acpi.cpu.dynamic = 1
hw.acpi.cpu.passive = 1
And about X, I think: if it's possible to power off display in X, then must be possible to do the same in console. Why no?
Reply With Quote
  #7   (View Single Post)  
Old 8th January 2015
fusilli's Avatar
fusilli fusilli is offline
New User
 
Join Date: Dec 2014
Posts: 5
Default

Try pressing FN+F4 - that's the display toggle for your model.

If that doesn't work, maybe try FN + F1 until display goes blank? It may not fully blank.

There are various scripts under /etc/powerd that you might be able to make use of, specifically faking a "lid close" event which should blank the screen.

Good luck!
Reply With Quote
  #8   (View Single Post)  
Old 19th January 2015
batence's Avatar
batence batence is offline
New User
 
Join Date: Jan 2015
Posts: 8
Default

If someone else have some solutions, it is welcome here ... I still can't turn off the display.
Reply With Quote
  #9   (View Single Post)  
Old 5th February 2015
fn8t's Avatar
fn8t fn8t is offline
Real Name: Ego
Shell Scout
 
Join Date: May 2014
Location: Tao
Posts: 120
Default

Quote:
Originally Posted by batence View Post
If someone else have some solutions, it is welcome here ... I still can't turn off the display.
I see you've had no luck yet. The current implementation of vesa has changed. Could you try your setup omitting the vesa option and see if you are still having the same issue.

I have been enjoying the new vesa implement, but have noticed some problems on older machines (vintage crap Neomagic). When I exit an X session the screen is blurred.

Anyway, if you find that your problem goes away without vesa it could narrow the problem down really fast.
Reply With Quote
Old 10th February 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 102
Default

I've been experiencing the same problem with various 6.x.x NetBSD installations on a few ASUS laptops/netbooks. Reboot works fine, but halt doesn't power off system, I'm forced to do it manually.
Reply With Quote
Old 14th February 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 102
Default

P.S. I have the same problem in VMWare as well.
Reply With Quote
Old 15th February 2015
fn8t's Avatar
fn8t fn8t is offline
Real Name: Ego
Shell Scout
 
Join Date: May 2014
Location: Tao
Posts: 120
Default

Quote:
Originally Posted by DaBSD View Post
I've been experiencing the same problem with various 6.x.x NetBSD installations on a few ASUS laptops/netbooks. Reboot works fine, but halt doesn't power off system, I'm forced to do it manually.
Good point, DaBSD! Thanks for the hint It might not solve things in VMWare, but a more obvious thing to check for both ,the screen and halting, problems is "apm" or lack of "apmd".

It needs to be compiled in the kernel.

Quote:
Edit the file /usr/src/sys/arch/i386/conf and uncomment apm to enable APM, it should look like:

apm0 at mainbus0 # Advanced power management

Alternatetively, you might want to customize (uncomment) these options:

# Tuning for power management, see apm(4) for more details.
#options APM_NO_IDLE # Don't call BIOS CPU idle function
#options APM_V10_ONLY # Use only the APM 1.0 calls
#options APM_NO_POWEROFF # Don't power off on halt(8)
#options APM_POWER_PRINT # Print stats on the console
#options APM_DISABLE_INTERRUPTS=0 # Don't disable interrupts
Check out these links for more info.

NetBSD Poweroff tutorial


NetBSD Power management Document

Maybe not a VESA issue after all. Sorry, guys. Might not hurt to see what happens without VESA, if the screen problem persists.

Last edited by fn8t; 15th February 2015 at 02:04 AM. Reason: spelt apm amp
Reply With Quote
Old 15th February 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 102
Default

Thank you fn8t for your tip! Strange it's not enabled by default. I will test it and let you know how it went.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
display manager... vato FreeBSD Ports and Packages 3 21st September 2010 04:26 PM
dwm status bar won't display apm output asemisldkfj General software and network 6 16th August 2009 11:07 PM
can't open display error gosha OpenBSD General 12 28th May 2009 05:49 AM
Odd font display TerryP Feedback and Suggestions 4 2nd November 2008 11:22 AM
Terminal display behavior 18Googol2 FreeBSD General 8 26th September 2008 02:05 PM


All times are GMT. The time now is 02:00 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick