LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2006, 01:34 PM   #1
pet_hlina
LQ Newbie
 
Registered: Nov 2006
Distribution: Archlinux
Posts: 5

Rep: Reputation: 0
Common user and fbset utility


Hi,
can a common user (not root) change his console resolution (not X) by fbset utility? And what about refresh rate of LCD display? I always get only 60Hz in framebuffer.

Thx in advance!
 
Old 11-06-2006, 04:21 PM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

Yes you can change it with a common user. You just have to check that you have correct permission for /dev/fb0 file.
maybe just add your user to "video" group...

Oliv'
 
Old 11-06-2006, 05:19 PM   #3
pet_hlina
LQ Newbie
 
Registered: Nov 2006
Distribution: Archlinux
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Oliv'
Hello,

Yes you can change it with a common user. You just have to check that you have correct permission for /dev/fb0 file.
maybe just add your user to "video" group...

Oliv'
Thx for reply,
permission of /dev/fb0 looks like this:
lrwxrwxrwx 1 root root 4 2006-11-07 02:48 /dev/fb0 -> fb/0

maybe you mean /dev/fb/0:
crw-rw---- 1 root video 29, 0 2006-11-07 02:48 0

Ok, i have changed /dev/fb/0 to:
crw-rw-r-- 1 root video 29, 0 2006-11-07 02:48 0

and it works, but i still can't change my refresh rate. It stays on 60Hz.
But isn't it dangerous to allow common user to have a access to framebuffer?
 
Old 11-07-2006, 02:26 AM   #4
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Quote:
But isn't it dangerous to allow common user to have a access to framebuffer?
that's why it is better to add users you want to access framebuffer to video group
 
Old 11-07-2006, 05:28 AM   #5
pet_hlina
LQ Newbie
 
Registered: Nov 2006
Distribution: Archlinux
Posts: 5

Original Poster
Rep: Reputation: 0
Ok, I see.
And could you pls help me with changing refresh rate of LCD?
I would like to have higher one, not 60Hz.
Thx.

pet_hlina
 
Old 11-07-2006, 05:45 AM   #6
dhirendra
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
my new automatically installed linux can not detact sound card. I have a motherboard of hcl 865.
 
Old 11-07-2006, 10:32 AM   #7
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
Quote:
Originally Posted by pet_hlina
Ok, I see.
And could you pls help me with changing refresh rate of LCD?
I would like to have higher one, not 60Hz.
Thx.

pet_hlina
That's going to depend on which framebuffer driver you're using. VESA cannot change resolution after booting, I think it only supports 60Hz anyway.

But if you have a specific driver for your video card, most support resolution changes. The file /etc/fb.modes lists possible resolutions and framerates so you just need to set one of these, e.g.

Code:
fbset 1024x768-75
will use 75Hz. If you omit the refresh rate, it just uses the first entry for 1024x768, which will usually be 60Hz (they seem to be in order of increasing refresh rate).
 
Old 11-07-2006, 01:12 PM   #8
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
just to add:
try "fbset -i" to see available modes
 
Old 11-08-2006, 07:45 PM   #9
pet_hlina
LQ Newbie
 
Registered: Nov 2006
Distribution: Archlinux
Posts: 5

Original Poster
Rep: Reputation: 0
Thx guys,
but it doesn't work.
I can change color depth and resolution, but not refresh rate.

fbset -i gives me just a current mode.
fbset 1024x768-75 changes only resolution, the refresh rate remains unchanged on 60Hz.

Maybe it is because of LCD display. I have read somewhere, that LCDs have only one refresh rate and it is not so important. I don't believe it, but on the other hand i am newbie ... )
I use savagefb driver compiled in kernel (not a modul), VGA: S3 Savage IX on the older notebook Toshiba Satellite 2800-200.
Everything else with the notebook works perfect. i love linux :-)
 
Old 11-13-2006, 01:08 PM   #10
pet_hlina
LQ Newbie
 
Registered: Nov 2006
Distribution: Archlinux
Posts: 5

Original Poster
Rep: Reputation: 0
So, no advice about refresh rate of LCD?! :-(
Never mind!
 
Old 11-13-2006, 01:18 PM   #11
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

see this article:http://en.wikipedia.org/wiki/Refresh_rate

Oliv'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
BOGUS.common.04y -> /home/common/Mailbox jayakrishnan Linux - Networking 0 11-19-2005 05:48 AM
After compiling my kernel, common user access denied. yilang *BSD 6 05-09-2005 09:29 PM
unable to connect to internet as common user. wizard7423 Slackware 16 01-15-2005 12:13 PM
no sound in flash animations as common user eeverde Linux - Newbie 2 08-12-2004 11:33 PM
Common user access to mounted partitions? JoooN Slackware 2 02-16-2003 07:17 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration