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

9 years ago

OOPS!!!!!!!!!!!!!!!!!!!

I had created the upload from a folder that had a link to the script instead of where the script actually lives. I've just re-uploaded the proper files.

Remember that in Unity or Gnome3, the Linux program "xrandr" does not seem to work properly. You will probably need to use "newrez-v". I hope the Gnome folks get this fixed soon!

newrez uses xrandr to create a scaled screen directly in X. newrez-v sets up a VNC server in a higher resolution, then attaches a viewer in scaled mode. Not as slick or as fast, but it does work.

Let me know how this works for you.

-- Marc

Report

dannyboiii

9 years ago

Okay, I was able to get it to work.. Kinda. I'm also running into the bug where your mouse can't move past a the original resolution.

& for some reason, whenever I run the other script, absolutely nothing happens.. it's really weird. Any advice?

Report

C

marc41

9 years ago

Just made some additional changes, to ensure that Ubuntu-related specifics all take effect and that they do NOT interfere on OTHER distros.

Be sure you get newrez 0.4!

Report

C

marc41

9 years ago

The newrez script is behaving as I'd expected. Apparently the current release of "xrandr" was supposed to have fixed a bug where the mouse could leave the viewing area. This introduced the new bug you see where it cannot leave the boundaries of the original resolution.

So, that's why I did newrez-v

The problem you're having there is probably very simple. The first time it is run, there is a lot of setup to be done (especially in Ubuntu), and it needs to ask the sudo password a number of times along the way. Therefore, the first time, it needs to be run in a terminal session. After that you can use it as a nautilus script.

LET ME KNOW!!

-- Marc

Report

dannyboiii

9 years ago

doesn't seem to have fixed it, maybe gtk-apps hasn't updated the upload yet. Hopefully I'll get it working soon, I'll try again tomorrow. Thanks for the help, it really is a great application!

-danny

Report

C

marc41

9 years ago

OOPS!!!!!!!!!!!!!!!!!!!

I had created the upload from a folder that had a link to the script instead of where the script actually lives. I've just re-uploaded the proper files.

Remember that in Unity or Gnome3, the Linux program "xrandr" does not seem to work properly. You will probably need to use "newrez-v". I home the Gnome folks get this fixed soon!

newrez uses xrandr to create a scaled screen directly in X. newrez-v sets up a VNC server in a higher resolution, then attaches a viewer in scaled mode. Not as slick or as fast, but it does work.

Let me know how this works for you.

-- Marc

Report

9

fanoy

9 years ago

Hi.
I cannot running script newrez-v, need script tigervnc-server. how to install it? I use ubuntu 11.10

fanoy@LABEL-FANOY:~$ cd Destop
fanoy@LABEL-FANOY:~/Destop$ ./newrez-v
This script needs

tigervnc-server


to be installed first!
fanoy@LABEL-FANOY:~/Destop$

Report

C

marc41

9 years ago

Newrez-v is now updated to version 0.2

It properly handles the different package name for the VNC Server in Ubuntu

Report

9

fanoy

9 years ago

hi
The following results of my testing with the new script rez-v 0.2. after I install vnc4server then i running newrez-v in terminal, appears as shown:http://img29.imageshack.us/img29/1617/screenshotat20120220194.png, and then when I enter the password, the display as shown below: http://img848.imageshack.us/img848/1617/screenshotat20120220194.png

Report

C

marc41

9 years ago

I installed Ubuntu into a virtual machine so I could debug this all the way through. MANY exceptions were needed. Give version 0.3 a try and let me know what happens!

Report

C

marc41

9 years ago

On my system, I use Fedora. In Fedora, the program "vncserver" is provided by the package "tigervnc-server".

I just looked up Ubuntu. I believe the package you need is "vnc4server". Also, it seems to provide the program "vnc4server".

I may need to adjust my script to test which Linux distro is being used.

On your system, install the package "vnc4server" and then see if you have a program of the same name. Let me know what you find. I will adjust the script.

-- Marc

Report

9

fanoy

9 years ago

already support for gnome 3 or ubuntu oneiric?

Report

C

marc41

9 years ago

There is a problem with the newest XRandR. The screen properly resizes, but the mouse is not informed of the larger area. So if you resize a 1024x600 screen to 1280x800, the mouse is confined within an invisible border at 1024x600.

However, I found a functional (though not perfect) work-around for this. When you unpack 'newrez' it will provide two scripts.

The first script, based on XRandR, will not work properly in Gnome3 until the above bug is fixed.

The second script works differently. Instead of resizing the current screen, it creates a VNC Server session on port 5999 at 1280x800 and then executes a VNC Viewer on that port in 'scaled mode'. This is slightly slower, noticeable mostly when viewing videos, but DOES succeed in giving you more space.

This second script is named "newrez-v". Please run it from a command line, because it does not (yet) have a GUI. You can edit the script directly to change the resolution of the VNC session. The next version will be more elegant.

-- Marc

Report

9

fanoy

9 years ago

whether it could not be converted ratio into 16:10? I usually use way to reduce the DPI to 70dpi and raised font advanced 2 levels for get big screen view. example of the font size 11px increase to 13px.

Report

C

marc41

9 years ago

I am not sure what you mean...

Are you suggesting that changing the font and DPI is another way to change the screen resolution?

Or you asking if there is a way to change the "newrez-v" aspect ratio?

If it is the second item, just edit the newrez-v script and replace "1280x800" with whatever you would like.

Otherwise, please explain again.

Report

frostwire

9 years ago

i accidentaly double-clicked the new "newrez-v" file. How can i make it work now ?
thanks

Report

C

marc41

9 years ago

newrez-v must be run from the command line the first time you use it. That is because it needs to ask you for a password during the VNC setup.

Here are the steps...
First, start the program "Terminal" from the menus
Then, depending on where you saved the script, cd to that directory. For example: cd /home/frostwire/Desktop
Then execute the script with: ./newrez-v

After you have set it up the first time, you can then run it with a simple double-click.

Report

9

markjm1971

9 years ago

Hi Marc41.

Happy New Year!

Just tried the vnc server approach on Fedora 16, but get an error message saying:
Connection to host localhost::5999 was closed.
I wasn't too sure how to configure the vnc server. I installed x11vnc and set up a password file - but this is not located in the .vnc directory. I also opened the port on the firewall in case this was causing a problem.
Given that you use Fedora too, can you explain how to set the the vnc server in more detail?

Thanks,
Mark

Report

C

marc41

9 years ago

Guess I was too anxious to get it posted :-)

The script now does a dependency check. Please re-download and try again. LET ME KNOW!!

Report

9

markjm1971

9 years ago

Hi Marc,

The dependency check does not echo anything on the screen to me, but I installed tigervnc and tigervnc-server anyway. Vinagre was already installed.

I followed guidance on the following url to configure the vncserver:
http://www.oracle-base.com/articles/linux/ConfiguringVncServerOnLinux.php

Once the password was set up then I was able to run your script successfully. It not elegant but it's a workaround that works. Interestingly the remote desktop appeared to be gnome 2 rather than gnome 3.

Thanks Mark

Report

C

marc41

9 years ago

Yes, it dows run gnome2. Apparently because VNC server isn't actually a 'video card'.

As for the dependency checks, you did run this from a terminal session, right? Not by just double-clicking?

Report

9

markjm1971

9 years ago

Double clicked I'm afraid. Since I've resolved dependancies I cannot test it again (unless I remove tigervnc).
Cheers,
Mark

Report

C

marc41

9 years ago

There's the answer then. It doesn't yet use the GUI (with zenity) to send messages. If you'd started it in gnome-terminal you would have gotten the messages. I'll add that.

Glad it's working now. Seems xrandr 1.3 has a bug that's been there for a while now, plus the xrandr newrez will never work for some video drivers. So this newrez version will be useful until those things get fixed in the repos.

Report

9

markjm1971

8 years ago

Marc,

I've upgraded to Fedora 17 and for some reason when I run newrez I simply end up with a black screen. I retained the original home area, so I'm guessing there may be a conflict somewhere. What do I need to remove in order to make my system think newrez is being run for the first time?

Thanks,
Mark

Report

9

markjm1971

9 years ago

Hi Marc,
I've worked out how to stop the 'blind spots' that appeared when Ubuntu brought in Unity. I looked at the saved outputs from Xrandr and added this to the code the Newrez put in the launchers:

#!/bin/sh
xrandr --fb 1280x750 --output LVDS1 --scale 1.25x1.25 --panning 1280x750 --pos 0x0 --rotate normal --output VGA1 --off

I put this in a shell script which works perfectly.
Cheers,
Mark

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