newrez - Increase Screen Rez For Netbook

Nautilus Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

7
8.1
Description:

Newrez is a nautilus script that not only makes it easy to change screen resolution on the fly, it lets you specify a resolution higher than your display's physical dimensions! This means that a netbook with a screen that's 1024x600 can display a scaled 1280x800 or higher (limited only by your eyesight :-)

Newrez does NOT "over-drive" the actual hardware. Instead, it defines a higher-resolution display on the netbook's VGA port, and scales it to the LCD.

You are not restricted to "standard" resolutions. Values like 1100x730 or 1350x900 or even 1400x700 will work just fine (and a few-pixel adjustment automatically applied if needed). Setting to 'default' will return everything back to normal.

Newrez can also be run directly from the command line, as in "newrez 1280x800" or "newrez default". This makes it a simple matter to switch to create scripts or icons that set your most common resolutions, or to include resolution changes into other scripts or launchers.

REQUIRES:
xrandr (version 1.3 or higher)
zenity
bc
cvt

At present, this will not work if you use the vendor-supplied Nvidia or ATI driver.

If the laptop lid is closed and re-opened, you MAY find the the mouse is constrained to an area the size of the default resolution. This is caused by xrandr. Re-execute newrez to fix this.
Last changelog:

7 years ago

Check my other scripts, too!
(VOTE!!)


0.1 - initial version
0.2 - minor cosmetic fix for older zenity versions
0.3 - when run, the "xrandr" command is saved in a 1-line script ~/newrez-devname-XXXX
0.4 - corrected parsing when multiple monitors are detected
0.5 - a gnome-panel launcher icon can be created automatically
0.6 - better panel icon creation
0.7 - much more thorough testing to ensure proper versions of xrandr and gnome-panel-add
0.8 - Added "newrez-v" which is an entirely different approach to compensate for "constrained mouse" issue in latest xrandr. newrez-v starts a vncserver at a higher resolution and then starts a vncviewer in scaled mode. Not as elegant, not as fast, but will work on ALL systems.

0.9 is a rewrite, and avoids the problems of a confined mouse by defining new resolutions to the VGA output, then scaling for display on the LCD. It's been tested in gnome2 and gnome3 as well as the MATE and Cinnamon desktops.

1.1 fixed issue when returning to "default" resolution, where mouse was not confined to screen edges.

C

marc41

10 years ago

That's not where I put it on my system (see above). I suppose it should work there too, but the xinitrc.d directory is there for your "custom stuff" and won't disturb (or be disturbed by) updates.

The line looks right. You could put a very long 'sleep' in there, then look for it with a 'ps' once the system is up.

It's also possible that X isn't up within the 20 seconds, so a long sleep (30 or 40) might be all that's needed.

Of course putting that script somewhere and having Gnome start it at login should work too.

Let me know what happens...

Report

Yahmorah

10 years ago

Hello i have a acer aspire one 532h and i would like to add more resolutions to my net book but i haven't found a viable way to install this script can you give a detailed description on how to install this correctly please thank you in advanced

Report

C

marc41

10 years ago

I have sent you a message with instructions...

Report

kylefiechter

10 years ago

would you mind send it them to me also? I have a Acer Extensa 4420 if that helps. Thanks!

Report

C

marc41

10 years ago

1: Click the DOWNLOAD button

The file will appear in your $HOME directory, or on your Desktop, or in your Downloads folder, depending on your settings.

Find the file: 134686-newrez.tar.gz

2: THE AUTOMATIC WAY: If this works for your system, double-click that file and "extract" it.
2a: If AUTOMATIC does not work for you:
. open a terminal
. cd to the directory containing the file
. type: gunzip 134686-newrez.tar.gz
. type: tar xvf newrez.tar

You now have a file named: newrez
This is the actual program

3: type: mv newrez $HOME/.gnome2/nautilus-scripts

You are now "installed".

To use the program, right-click your mouse while pointing at the desktop background.
Select "Scripts"
Click on "newrez"

ENJOY!!

Report

C

marc41

10 years ago

1: Click the DOWNLOAD button

The file will appear in your $HOME directory, or on your Desktop, or in your Downloads folder, depending on your settings.

Find the file: 134686-newrez.tar.gz

2: THE AUTOMATIC WAY: If this works for your system, double-click that file and "extract" it.
2a: If AUTOMATIC does not work for you:
. open a terminal
. cd to the directory containing the file
. type: gunzip 134686-newrez.tar.gz
. type: tar xvf newrez.tar

You now have a file named: newrez
This is the actual program

3: type: mv newrez $HOME/.gnome2/nautilus-scripts

You are now "installed".

To use the program, right-click your mouse while pointing at the desktop background.
Select "Scripts"
Click on "newrez"

ENJOY!!

Report

C

marc41

10 years ago

1: Click the DOWNLOAD button

The file will appear in your $HOME directory, or on your Desktop, or in your Downloads folder, depending on your settings.

Find the file: 134686-newrez.tar.gz

2: THE AUTOMATIC WAY: If this works for your system, double-click that file and "extract" it.
2a: If AUTOMATIC does not work for you:
. open a terminal
. cd to the directory containing the file
. type: gunzip 134686-newrez.tar.gz
. type: tar xvf newrez.tar

You now have a file named: newrez
This is the actual program

3: type: mv newrez $HOME/.gnome2/nautilus-scripts

You are now "installed".

To use the program, right-click your mouse while pointing at the desktop background.
Select "Scripts"
Click on "newrez"

ENJOY!!

Report

Cooleech

10 years ago

If this thing really works, it will be an "life saver" for my sister and her Acer One. :)
I'll report back what she thinks of it once she replys to my mail. Thanx, man!

Report

swordjr

10 years ago

Thanks for this awesome script. Works perfectly for me.

Is there a way to have the script set a custom resolution on startup by default? Its kind of irritating setting a new resolution after each reboot manually. Any advice would be appreciated.

Regards

Report

C

marc41

10 years ago

Hmmm...

I could have the script put the actual "xrandr" command that it executes into a small file in /tmp. From there you could move them somewhere permanent, like /usr/local/bin or ~/bin

There are a few things that could be done with those files:

1) If you put them in ~/.gnome2/nautilus-script, you could have instant access to these resolutions without re-running the script.

2) If you drag them to the launcher bar, you could switch resolutions with a single click.

3) You could reference the script of your choice in the Gnome "Startup Applications"

4) Whatever else you can think of!!

How does this sound?

-- Marc

Report

C

marc41

10 years ago

DONE! Get version 0.3

Report

9

nenelinux

10 years ago

Doesn't work for me too

Report

StrangeQuark

10 years ago

"xrandr: Failed to get size of gamma for output default
xrandr: Failed to get size of gamma for output default
xrandr: Failed to get size of gamma for output default
DEFAULT: 1280 800
SCALE 1.25
NEW: H V 1600 1000
xrandr: Failed to get size of gamma for output default
xrandr: screen cannot be larger than 1280x800 (desired size 1600x1000)"

A little help?

Report

C

marc41

10 years ago

Hmmm... What is the output of the command "xrandr -q" on your system? Is your display a laptop LCD, stand-alone LCD, something else?

I just wrote this last night, so not a whole lot of testing yet.

Report

StrangeQuark

10 years ago

This is what happens when I try to set a lower resolution:
xrandr: Failed to get size of gamma for output default
xrandr: Failed to get size of gamma for output default
xrandr: Failed to get size of gamma for output default
DEFAULT: 1280 800
SCALE .80
NEW: H V 1024 640
xrandr: Failed to get size of gamma for output default
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 154 (RANDR)
Minor opcode of failed request: 26 (RRSetCrtcTransform)
Value in failed request: 0x162
Serial number of failed request: 22
Current serial number in output stream: 23

Report

C

marc41

10 years ago

I'm going to start testing this on my other systems. My suspicion is that because xrandr sees your hardware as "default" instead of a device name (like "VGA1"). It is the device name found on the line containing "default" that I'm parsing from the xrandr output.

Interesting though that it does produce output for the device "default" and is apparently referring to "Screen 0". My script is currently not looking there. Perhaps that's what's needed.

I need to see if xrandr can be pointed at "Screen 0" (which is probably coming from /etc/X11/xorg.conf). This is getting interesting...

Report

C

marc41

10 years ago

I'm going to start testing this on my other systems. My suspicion is that because xrandr sees your hardware as "default" instead of a device name (like "VGA1"). It is the device name found on the line containing "default" that I'm parsing from the xrandr output.

Interesting though that it does produce output for the device "default" and is apparently referring to "Screen 0". My script is currently not looking there. Perhaps that's what's needed.

I need to see if xrandr can be pointed at "Screen 0" (which is probably coming from /etc/X11/xorg.conf). This is getting interesting...

Report

StrangeQuark

10 years ago

It's a laptop LCD. "xrandr -q" gives:
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 175, current 1280 x 800, maximum 1280 x 800
default connected 1280x800+0+0 0mm x 0mm
1280x800 50.0*
1024x768 51.0 52.0
840x525 53.0
832x624 54.0
800x600 55.0 56.0 57.0 58.0 59.0
800x512 60.0
720x450 61.0
720x400 62.0
700x525 63.0
680x384 64.0 65.0
640x512 66.0 67.0
640x480 68.0 69.0 70.0 71.0 72.0
640x400 73.0
640x350 74.0
576x432 75.0 76.0 77.0 78.0 79.0 80.0
512x384 81.0 82.0 83.0 84.0 85.0
416x312 86.0
400x300 87.0 88.0 89.0 90.0 91.0
360x200 92.0
320x240 93.0 94.0 95.0 96.0
320x200 97.0
320x175 98.0

Report

C

marc41

10 years ago

Hmmm... What is the output of the command "xrandr -q" on your system? Is your display a laptop LCD, stand-alone LCD, something else?

I just wrote this last night, so not a whole lot of testing yet.

Report

9

joshiggins

10 years ago

this is AWESOME

Report

C

marc41

10 years ago

THANKS!

I've got a netbook that's 1024x600 and it can be frustrating. I had been using different trick: start a vncserver on 5901 at 1280x800 and then connect with a scaling viewer. But that was slow.

When I found that xrandr could do this, just HAD to script it and share :-)

Glad you like it!!!

-- Marc

Report

7 years ago

Check my other scripts, too!
(VOTE!!)


0.1 - initial version
0.2 - minor cosmetic fix for older zenity versions
0.3 - when run, the "xrandr" command is saved in a 1-line script ~/newrez-devname-XXXX
0.4 - corrected parsing when multiple monitors are detected
0.5 - a gnome-panel launcher icon can be created automatically
0.6 - better panel icon creation
0.7 - much more thorough testing to ensure proper versions of xrandr and gnome-panel-add
0.8 - Added "newrez-v" which is an entirely different approach to compensate for "constrained mouse" issue in latest xrandr. newrez-v starts a vncserver at a higher resolution and then starts a vncviewer in scaled mode. Not as elegant, not as fast, but will work on ALL systems.

0.9 is a rewrite, and avoids the problems of a confined mouse by defining new resolutions to the VGA output, then scaling for display on the LCD. It's been tested in gnome2 and gnome3 as well as the MATE and Cinnamon desktops.

1.1 fixed issue when returning to "default" resolution, where mouse was not confined to screen edges.

12345678910
18
product-maker ofxxx Oct 26 2016 9 excellent
product-maker teresaejunior Aug 11 2013 9 excellent
product-maker I4C Feb 19 2013 9 excellent
product-maker kutalion Jan 20 2013 9 excellent
product-maker fanoy Jan 11 2012 9 excellent
product-maker markjm1971 Jan 02 2012 9 excellent
product-maker raoulr Mar 06 2011 9 excellent
product-maker kolesky Feb 18 2011 9 excellent
product-maker TheRob Feb 17 2011 9 excellent
product-maker mywindow Nov 19 2010 9 excellent
product-maker mhnassif Nov 14 2010 9 excellent
product-maker nenelinux Nov 10 2010 9 excellent
product-maker larryni Nov 09 2010 9 excellent
product-maker cochisepoeta Nov 09 2010 9 excellent
product-maker DanRock007 Nov 09 2010 9 excellent
product-maker benjamimgois Nov 09 2010 9 excellent
product-maker joshiggins Nov 09 2010 9 excellent
product-maker influxor Nov 09 2010 9 excellent
Be the first to comment
raoulr
Jul 20 2013
kutalion
Jan 20 2013
mywindow
Nov 19 2010
mhnassif
Nov 12 2010
nenelinux
Nov 10 2010
swordjr
Nov 09 2010
larryni
Nov 09 2010
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.1
updated Dec 20 2013
added Nov 09 2010
downloads 24h
1
mediaviews 24h 0
pageviews 24h 17
System Tags addon