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.

9

markjm1971

9 years ago

Don't bother using the panning bit in your code, I just tried an old launcher created with Newrez last year and that works with Ubuntu 11.04. I guess the good folks in Ubuntu added some patches to Unity during the year while I haven't bothered trying newrez.

Anyway its working now. No blind spots (black rectangles). Using Ubuntu 11.04 on Samsung Netbook N140.

Cheers,Mark

Report

calichon

9 years ago

Hi, I'm glad to be sneakin around here today, because I like Marc's Newrez. When I moved to 11.04 (under Unity), I wasn't able to use anymore the script. But after Mark's succesful attempt, I tried also, and bingo! It's working! Maybe some update, but your script is up and running at the moment. Best regards

Report

9

markjm1971

9 years ago

When I first went from Ubuntu 10.10 to 11.04 was when I had the issue of black rectangles / blind spots. Recent updates to 11.04 must have resolved the situation.

However, I've just 'upgraded' to 11.10 Beta and while I don't have black rectangles to the right and bottom of the screen, I'm unable to move the mouse into this area as reported by another user. Hopefully the full release should resolve this

Report

C

marc41

9 years ago

Hopefully... I am using Fedora, and have been having the mouse problem on my netbook since moving to release 15.

In my case, the screen resizes just fine, but the mouse is trapped in a 1024x600 area. Is that what you are getting now? I've found no cure yet.

-- Marc

Report

9

markjm1971

9 years ago

Hi Marc,

Yes that's exactly the issue with Ubuntu 11.10 Beta.

regards,
Mark

Report

C

marc41

9 years ago

I didn't know about Ubuntu's 'blind spots'. On Fedora 15 my only issue is that the mouse can't escape a rectangle of the original resolution.

It appears that X sets the new resolution but doesn't tell Gnome 3 about it.

If setting 'panning' to the new resolution fixes an Ubuntu problem, I can certainly stick that in there. If while playing with this you happen upon a fix for the mouse, please let me know!

Report

quas0

9 years ago

No more black spots on the 11.10 beta with Unity, but the mouse is still blocked on the original 1024x600 resolution, which is somehow unconfortable... Is an update of this very useful program is planned ? Thanks !

Report

9

fanoy

9 years ago

hi Marc1. Newrez support gtk3?,,,

Report

C

marc41

9 years ago

I have a netbook I've upgraded to Gnome3. There seems to be something wrong with XrandR in this environment. I have tried, and while I have managed a resized screen that looks perfect, the mouse is not able to expend beyond the boundary of the original resolution. So after a resize from 1024x600 to 1280x800, the mouse cannot move outside of an invisible 1024x600 rectangle.

I've tried many things. Somehow it seems Gnome is not aware of the change in X. If anyone out there has an idea here, I'd sure like to hear it! :-)

At this time, I'm just (im)patiently waiting for an update that fixes this.

Report

9

fanoy

9 years ago

hi. how to set default resolution after I resize in newrez. and when I restart, I use new resolution in my netbook

Report

C

marc41

9 years ago

After the script has run, you will find two files in your $HOME directory. They will be named something like "newrez-1280.desktop" and "newrez-LVDS1-1280"

The first is a file which you can double-click (you might place it on your Desktop or launch bar). The second is a shell script that can be used in various ways.

One way to use the shell script is to add it to your 'Startup Applications'. This ensures that it is executed AFTER the desktop is running. If you find that it starts too soon, edit the file and add a "sleep XX" so that it waits for a few seconds before starting (XX might be just 2 or 3 seconds).

Please post your results here for other users to read.

Enjoy!

Report

9

fanoy

9 years ago

[Edit] I want to say a bit about what I doubt, if I set the default resolution of 1280x750 on my netbook 10.1 (default 1024x600). if it does not quickly damage the screen or heat may make it faster?

Report

C

marc41

9 years ago

Do not worry.

The newrez script does NOT try to force your display into an un-supported mode!!

Your actual hardware display stays at the original resolution (1024x600). The script creates a higher resolution "display" in memory ONLY. Then it shows that in-memory display on your actual screen by "scaling it down".

For example, if you have a physical screen that is 1024x600 and choose newrez to set your screen to 1280x800, it will show on your display a 1280x800 image that has been scaled-down by 25%.

There is NO DANGER in using this script. The resolution of your display actually stays unchanged. It simply scales everything to appear smaller,

Report

9

fanoy

9 years ago

Hai Marc41
I succeed to try your trick for set default new resolution after startup " add it to your 'Startup Applications'. This ensures that it is executed AFTER the desktop is running" and it all normal running.

but, if I try play game 0ad, game not playing. just blankscreen.

Report

9

fanoy

9 years ago

ok, thanks march41. I will try and report to you for result make this new resolutin 1280x800 to default in my netbook :)

Report

9

fanoy

9 years ago

I want to say a bit about what I doubt, if I set the default resolution of 1240x600 on my netbook 10.1 (default 1024x600). if it does not quickly damage the screen or heat may make it faster?

Report

zardosht

9 years ago

Hi,

I am using Ubuntu in VMware player 3.1.4.
Running the script says my display driver is not supported. Is there any workarounds?

Thanks,
Zardosht

Report

C

marc41

9 years ago

What video driver is your system using? Plus, I've not personally tried this in any sort of VM setup. What is the output of "xrandr"?

Report

zardosht

9 years ago

Hi,

I am newbie to linux. How can I know which video adapter my system is using?
The lspci says:

00:0f.0 VGA compatible controller: VMware SVGA II Adapter

The xrandar returns in full screen mode of VMWare player the following output:

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 2560 x 1600
default connected 1366x768+0+0 0mm x 0mm
800x600 60.0 56.0 0.0
640x480 60.0 0.0
320x240 0.0
400x300 0.0
512x384 0.0
1024x768 0.0
1152x864 0.0
1280x960 0.0
1400x1050 0.0
1600x1200 0.0
1920x1440 0.0
2048x1536 0.0
854x480 0.0
1280x720 0.0
1366x768 0.0*
1920x1080 0.0
1280x800 0.0
1440x900 0.0
1680x1050 0.0
1920x1200 0.0
2560x1600 0.0
720x480 0.0
720x576 0.0
320x200 0.0
640x400 0.0
800x480 0.0
1280x768 0.0
1280x1024 0.0
1326x661 0.0

Report

9

markjm1971

9 years ago

Newrez worked perfectly on my samsungN140 running Ubuntu 10.10. However, I've 'upgraded' to 11.04 which uses unity. If I use one of the Newrez scripts to scale the screen, I end up with a black bar at the top of the screen and a black bar at the right hand side. Any ideas on how to overcome this? Is there some sort of screen refresh command that will resolve this?

Cheers,
Mark

Report

C

marc41

9 years ago

Hi --

I use Fedora, and recently upgraded my own netbook from 14 to 15 (with Gnome 3). Newrez is confused by this upgrade as well, where I get a resized display but the mouse pointer is confined to a 1024x600 rectangle.

I don't yet know what changed: whether it's XrandR itself, something more fundamental in X, or something else.

Thanks for letting me know it's not just my system and not limited to Fedora. I'll get to work on it...

-- Marc

Report

qkzoo

10 years ago

Ok, I ran the test and it was doing the math correctly. One other thing I forgot to mention. When I run your script, as I said before, I can edit the shortcuts to run correctly, so hardware and drivers or whatever are working correctly, I assume. The script, however, seems to be breaking somewhere. Take for instance this test:

1. I run your script, sh newrez. The script runs in terminal, but issues four "Syntax Error" statements:

Quote:
(standard_in) 1: syntax error
DEFAULT: 1024 600
(standard_in) 1: syntax error
SCALE 1
(standard_in) 1: syntax error
(standard_in) 1: syntax error
NEW: H V 1024 600
--version


This time around, just as a test I plugged in 1280, which you said should have been 1.25 for the ratio. When I examine the shortcut, it looks like this for the command line:

Quote:
xrandr --fb 1024x600 --output LVDS1 --scale 1x1


As you can see, it didn't plug in the correct resolution or ratio. If I edit the shortcut to run 1280 x 800 at 1.25 manually, it seems to look the same as the 1600 x 1000 resolution (1.25) I also have setup.

This is on my netbook. I tried this also on my old desktop unit (pretty old unit) which I know has an nVidia graphics card. I haven't done any driver updates on it yet, so it's probably a hardware acceleration issue, but when I adjust the resolution, the machine get's REALLY slow!

Any thoughts?

Report

C

marc41

10 years ago

>> (standard_in) 1: syntax error
>> DEFAULT: 1024 600

Hi -- SO sorry for the delay -- gnome-look for some reason is NOT sending me email when new comments arrive...

The above complaint, and the problems that follow, are coming from the lines that "echo" things to the "bc" command. I guess it's possible that Mint's "echo" command is different??

Type this:
echo -e "this is\na test"

You should get no complaints, and the results should print "this is" and "a test" on two separate lines.

Let me know what happens...

Report

C

marc41

10 years ago

The problem is definitely at or near the 'bc' commands. I suspect this because not only is the math being done incorrectly, but there are four syntax errors and there are four spots in the script that use 'bc'.

Try running the script with "sh -xv newrez 2>&1 tee /tmp/test.txt"

You'll get copious screen output, showing each line as it is encountered in the script and then a second time after any substitutions as it is executed. The complete output will be saved to /tmp/test.txt which can be reviewed afterwards.

Let me know what you see.

-- Marc

Report

C

marc41

10 years ago

OOPS -- there should be a pipe symbol (the shifted-backspace | character) between "2>&1" and "tee".

Should read ... 2>&1 | tee ...

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
3
mediaviews 24h 0
pageviews 24h 19
System Tags addon