-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (8) . 

newrez - Increase Screen Rez For Netbook

   1.1  

Nautilus Script

Score 77%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--
newrez - Increase Screen Rez For Netbook
zoom


Downloads:  25198
Submitted:  Nov 9 2010
Updated:  Dec 20 2013

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.




Changelog:

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.




LicenseGPL
(newrez 1.1)
Donate
Send to a friend
Subscribe
Other  Apps  from marc41
Report inappropriate content



goto page: prev   1  2  3  4  5  6 

-

 Great work

 
 by mhnassif on: Nov 9 2010
 
Score 50%

Thanks a lot, working really good.
I was wondering is there any way to set the resolution by default to apply it each time session start without using startup applications.


Reply to this

-

 Re: Great work

 
 by marc41 on: Nov 10 2010
 
Score 50%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

From what I've been reading about xrandr since putting this script together (it's been less than 24 hours), "maybe"...

There IS a way to use xrandr (along with "gtf" or "cvt") to create a new "mode". Once the new mode is created, it can be selected when configuring a display. If the new mode is added to /etc/X11/xorg.conf then it can be made permanent.

I will have to actually try this though. Every example I've seen of this described the resolution plus a number of things relating to scan rates and such, but nothing I've come across shows the use of "scale".

And SCALE is the reason this works. This script does not set a hardware resolution, it sets a framebuffer resolution and then scales it down to fit the hardware. So I have no idea (yet) if this can be used as a true "mode".

Further, most systems don't have an xorg.conf file any more. They auto-configure when X comes up. So even IF these modes work, they won't work for most users.

But, I'll give it a shot and report back :-)

-- Marc


Reply to this

-

 Re: Re: Great work

 
 by marc41 on: Nov 10 2010
 
Score 50%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

OK, there does not seem a way to make a proper mode for /etc/X11/xorg.conf. However (not for the faint of heart) THIS seems to work:

Copy your favorite /tmp/newrez-XXXX script from /tmp to /etc/X11/xinit/xinitrc.d
Edit the script as follows:
.enclose the entire line in parenthesis
.just after the open-parenthesis, insert: sleep15;
.after the close parenthesis, append: &

On a slower laptop, you may need a longer sleep (the xrandr must not run until X is up)


Reply to this

-

 Re: Re: Re: Great work

 
 by mhnassif on: Nov 11 2010
 
Score 50%

I Added this line to xinitrc

(sleep20; xrandr --fb 1497x936 --output LVDS1 --scale 1.17x1.17)&

it didn't work, is there something wrong with the line?


Reply to this

-

 Re: Re: Re: Re: Great work

 
 by marc41 on: Nov 11 2010
 
Score 50%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

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...


Reply to this

-
.

 Why Nautilus?

 
 by aubade on: Nov 10 2010
 
Score 50%

It's really nice to have a gui to access Xrandr's scale, but out of curiosity, why a Nautilus Script? This sort of thing strikes me as the sort of thing that would make more sense as a hack to gnome's Monitors capplet, or a panel applet.


Reply to this

-

 Re: Why Nautilus?

 
 by marc41 on: Nov 10 2010
 
Score 50%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

I suppose this could have been implemented somewhere else within the system. It started out at the command line as an experiment, and evolved into a bash script due to the math required to compute the scaling for an arbitrary resolution (scaling is based on the ratio of desired resolution to maximum hardware resolution). As a shell script, it was natural to just use zenity to GUIfy the interface.

From concept to posting, newrez was about two hours of work. I've done a bit more to it since then, and have considered that implementing the mode changes could be done elsewhere. Writing one-line files to /tmp that can be inserted elsewhere was a step in that direction. These files are specific to the native display resolution and the arbitrary resolution input by the user. A complete set of all possibilities would be quite large.

It seems that xorg.conf style mode lines cannot include the 'scale' arguments. The 1-line scripts can be used in /etc/X11/xinit/xinitrc.d and possibly elsewhere, but this requires a bit of user intervention. Referencing a script in Startup-Applications seemed a reasonably friendly "automation" that any user could handle.

And a big consideration is that this needs to work on a variety of distributions and releases. As it is now, relying only on three common utilities, it's quite universal.

All that said, if you have ideas for integrating this more tightly, I'd certainly like to hear them.

PM me and we can talk....


Reply to this

-

 Re: Re: Why Nautilus?

 
 by marc41 on: Nov 10 2010
 
Score 50%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

P.S.

newrez CAN be launched from the panel. In addition, the little scripts it leaves in /tmp can also be launched from the panel, letting the user hop between their own defined resolutions. Perhaps a drawer full of them would make sense.

Is there a category for launcher-apps to post this to? :-)


Reply to this

-
.

 Re: Re: Re: Why Nautilus?

 
 by Cooleech on: Nov 10 2010
 
Score 50%
CooleechCooleech
Cooleech_Inc .
Home

Yeah... about this script it leaves in /tmp... why in /tmp? Wouldn't it be much simpler to reach in $HOME dir? O.o


Vote, become a fan, help develop (translate) and use my script:
http://goo.gl/aRIk

Reply to this

-

 Re: Re: Re: Re: Why Nautilus?

 
 by marc41 on: Nov 10 2010
 
Score 50%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

Good point. Should I drop them in $HOME? Or maybe even $HOME/Desktop which will make them obvious AND clickable?? *AND* draggable to the launcher!!

What do you think?


Reply to this

-

 Re: Re: Re: Re: Re: Why Nautilus?

 
 by Cooleech on: Nov 12 2010
 
Score 50%
CooleechCooleech
Cooleech_Inc .
Home

Sure, why not ;)


Vote, become a fan, help develop (translate) and use my script:
http://goo.gl/aRIk

Reply to this

-
.

 Re: Re: Re: Re: Re: Re: Why Nautilus?

 
 by marc41 on: Nov 12 2010
 
Score 50%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

Try version 0.5 ;-)



-

 Re: Try version 0.5 ;-)

 
 by Cooleech on: Nov 12 2010
 
Score 50%
CooleechCooleech
Cooleech_Inc .
Home

I will if you promise you'll try my script version 3.9.1 once I get it online (in day or two)! :D ;)


Vote, become a fan, help develop (translate) and use my script:
http://goo.gl/aRIk

Reply to this

-
.

 Re: Re: Try version 0.5 ;-)

 
 by marc41 on: Nov 12 2010
 
Score 50%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

HAHA!! It's a deal :-)

You could also check out my "Audio/Video Convert" script -- put a lot of work into that one...


Reply to this

-

 Re: Re: Re: Try version 0.5 ;-)

 
 by Cooleech on: Nov 12 2010
 
Score 50%
CooleechCooleech
Cooleech_Inc .
Home

There's this program for M$ windows called Super(r) which is great tool for converting videos and audios, and I want to have similar nautilus script. I'll check your script, and if there's no need to improve anything (which would be great, since I am a bit lazy, lol ;)), I won't bother making such script myself. :)


Vote, become a fan, help develop (translate) and use my script:
http://goo.gl/aRIk

Reply to this

-
.

 0.5 & 0.6 doesn't work for me

 
 by Cooleech on: Nov 14 2010
 
Score 50%
CooleechCooleech
Cooleech_Inc .
Home

I tried both 0.5 and 0.6, and both fail to do anything but short flicker on the screen. Ubuntu Lucid, ATI HD3230.


Vote, become a fan, help develop (translate) and use my script:
http://goo.gl/aRIk

Reply to this

-

 Re: 0.5 & 0.6 doesn't work for me

 
 by Cooleech on: Nov 14 2010
 
Score 50%
CooleechCooleech
Cooleech_Inc .
Home

Oh, yes.. and driver is "default" from Lucid, not an non-free one.


Vote, become a fan, help develop (translate) and use my script:
http://goo.gl/aRIk

Reply to this

-

 Few scripting glitches

 
 by davromaniak on: Nov 15 2010
 
Score 50%

Hi.

While reading you script, I see some glitches that might be source of problems.

On line 13, why not extracting the version, and comparing it with '1.3'.

For example :
version=$(xrandr -v | sed 's/^.*RandR version \([0-9]\.[0-9]*\)/\1/')
if [ $version -lt '1.3' ]
then zenity --info --title="XRandR version is too old" --text="You must be running Xrandr
version 1.3 or newer!
Time to upgrade your system :-)"
exit 0
fi

On line 92, you are using the locate command for finding the full path to a binary, but there a command called "which", which return the full path to an executable binary.

And which returns 1 when the command is not found.

In your case, with locate, if I have a non binary gnome-panel-add file in any directory, it will try to call it.

Here is a little example on how to use which in your script.

Example :
which gnome-panel-add || (echo "Command gnome-panel-add not found"; exit 1)
paneladd=$(which gnome-panel-add)
$paneladd --launcher=~/newrez-$newrez.desktop --right-stick

I hope this will help you making this script better.

Thanks.


website : http://www.davromaniak.eu
Reply to this

-

 Re: Few scripting glitches

 
 by Cooleech on: Nov 15 2010
 
Score 50%
CooleechCooleech
Cooleech_Inc .
Home

Well, which returns messages in other languages than english, you know.. I'd rather use type -p instead.


Vote, become a fan, help develop (translate) and use my script:
http://goo.gl/aRIk

Reply to this

-

 Re: Re: Few scripting glitches

 
 by davromaniak on: Nov 15 2010
 
Score 50%

Yes, "which" is localized, but here, I only use the return code (the exit status).

Taken from the manpage :

0 : if all specified commands are found and executable
1 : if one or more specified commands is nonexistent or not executable
2 : if an invalid option is specified
mething

And when which doesn't find any pathname, it prints nothing and exits with status 1.

Thanks.


website : http://www.davromaniak.eu
Reply to this

-

 Re: Few scripting glitches

 
 by marc41 on: Nov 15 2010
 
Score 50%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

Hi -- I appreciate the suggestions. Here is WHY I did WHAT I did:

When testing for the xrandr version, I know that 1.1 and 1.2 will not work. I Also know that 1.3 and the current version 1.3.3 do work. And I expect that future versions also work. Your suggestion is reasonable, but the "test" command numerical evaluations are integer-only. I considered taking "1.3" and "the installed version", removing the "."'s. padding both with enough trailing zeroes to be of equal length, and then using the test you describe. It just seemed like more work than necessary.

When looking for the gnome-panel-add binary I found that does not live in $PATH (at least on my Fedora system). Therefore, neither "whereis" nor "which" will can be used. This leaves me with three options: to assume that it is in the same place on all distributions (scary), to hunt it down with "find" (guaranteed to work but slow), or to use "locate" (and assume that the distro is running the "mlocate/updatedb" cron job). I felt it unlikely that there would be another file by that name, but perhaps it WOULD be smart to ensure that exactly one match was found (I will DEFINITELY do that). If you have other ideas for this issue, I'm totally open.

Thanks to your input, I've just found that gnome-panel-add is rather new. On my Fedora 11 system that binary does not exist, but on 12 and newer it does. To further complicate things, on the newer versions (Fedora 14), "gnome-panel --version" returns an error. UGH! I've added code to do some testing to ensure that only one gnome-panel-add exists, that it is a python script, and that it is a new enough version.

I appreciate the input! Try version 0.7

THANKS!


Reply to this

-
.

 your script screen resolution

 
 by Karmicbastler on: Feb 18 2011
 
Score 50%

hi dear,

I just have one question: here in my Notebook, I have an nvida-graphiccard. So I would like to konw, if your little script also works with these graphiccards?

Thanks for your answer.

Greetings
Karmicbastler


Reply to this

-

 Re: your script screen resolution

 
 by marc41 on: Feb 18 2011
 
Score 50%
marc41marc41
Tailored Software, Inc
-
Marc Brumlik 53

Tailored Software, Inc
United States of America, Chicago
Last visit Apr 12 2014
13 Friends
1 Groups

More info
Send a message
Add as friend
Other contents
--

The newrez script will work with all hardware, including the Nvidia and ATI cards. However, the driver for that card must support "xrandr version 1.3".

Most of the standard drivers on a reasonably recent Linux install do support version 1.3 with the exception of drivers for very old cards.

For the ATI and Nvidia cards, more than one driver is available. In the case of Nvidia, your choices are 'vesa' (low performance). 'nouveau' (good performance with acceleration), and 'nvidia' (a "non-free" driver written by the vendor, and potentially the best performer).

The 'nvidia' driver is installed by many users because it offers the best performance and the most features. However, this driver does NOT support version 1.3 of xrandr. Therefore if you are using the kmod-nvidia package then newrez will not work. Perhaps some day this driver will be updated to support 1.3.

Until then, if one of the other drivers for your card is suitable for your performance needs, then newrez will work fine.


Reply to this

goto page: prev   1  2  3  4  5  6 

Add commentBack






-
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About GTK-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2014 GTK-Apps.org Team  
All rights reserved. GTK-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.