Unnamed pupplet (puppy411 kernel-2.6.27.5 Xorg-7.4 LXDE)

For talk and support relating specifically to Puppy derivatives
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

UP WOW

#46 Post by Lobster »

Image
very cool!
:D
It certainly is.
Woof Woof
Remember to read the warnings, first post in this thread - this might not work on every machine
I am using an AMD 5000+ 64 bit dual core with Nvdia GF 7050 integrated and 1GB of DDR2 (I have been a good crustacean and Santa came early)

I was impressed with the look and feel - reminded me of GrafPup which I think used this or a similar Window Manager . . . http://www.grafpup.org/

So it looks great
Let us put Unnamed Puplet through its paces . . .

It took me a while to find the Puppy menus (top left - Duh!)
and I moved this to the bottom and the bottom to the top (via the right)
Now I could connect to the net . . .
- usual couple of Puppy clicks and I am auto DHCP and net enabled

I used the Firefox SFS using the bootmanager option

I downloaded the suggested Nvidia graphics support
and the Mesa (open GL) SFS - again used Bootmanager to enable
and ran SecondLife

Done.

OK let us try this lxlauncher thing . . .
Done - I lost Conky AND for the first time ever
I want conky back - Conky always looked intrusive, this implementation seemed integrated.

Anyway lxlauncher runs from the command line and I look forward to lxlauncher as default in the next release or easy to access?
It reminds me of the Xandros interface on the Eeepc
which is designed for people even stupider than me (that is Windows Users and other semi conscious computer users) Excellent ease of use

Name suggestions:
Unnamed Puplet = UP = UltraPup or WOW = World Of Wowcraft
Last edited by Lobster on Wed 17 Dec 2008, 19:14, edited 1 time in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
prit1
Posts: 542
Joined: Fri 04 Jan 2008, 00:10
Location: Los Angeles

#47 Post by prit1 »

Wow,

Thanks a lot for packaging the ndiswrapper. Now I can use your pupplet more often as I can get on the net using it.
[url=http://macpup.org][b]Macpup - The beauty of linux[/b][/url] [b] | [/b] [url=http://pritlog.com/][b]Pritlog - Simple blog app[/b][/url]

magerlab
Posts: 739
Joined: Sun 08 Jul 2007, 20:08

#48 Post by magerlab »

You said that arrow keys doesn't work at all? it happens any time or only with certain apps? Please tell me more.

i noticed that arrows stop to work when i add ru keymap
also i still do not understand why russian keymap disappears after exit from X and why ru_winkeys( the most popular keymap) is not listed in add keymap dialog


pcmanfm is very useful with it's tabs

i also tryed to boot on EEE PC( wifi is recognized but tuochpad do not work properly)

is it possible to include russian UTF-8 locale into iso ?

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#49 Post by wow »

@MU: I installed NVIDIA-Linux-x86-96.43.07-pkg1.run (it can't be easily compiled, you must edit the source code) and got the same error on Xorg:

Code: Select all

Loading /usr/X11R7/lib/xorg/modules/drivers//nvidia_drv.so
dlopen: /usr/X11R7/lib/xorg/modules/drivers//nvidia_drv.so: undefined symbol: AllocateScreenPrivateIndex 
@Lobster: Use 'lxsession-edit' to enable/disable conky/xcompmgr/lxlauncher at startup (Menu>Preferences>Desktop Session Settings)

@magerlab: I'll make another sfs with all i18n/locale/translations soon.

EDIT, reason typo "can't be easily..." instead of "can be easily..."
Last edited by wow on Thu 18 Dec 2008, 00:59, edited 1 time in total.
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#50 Post by MU »

wow has uploaded the Kernelsource.
Another SFS packed with SquashfsLZMA:

linux-2.6.27.5-patched-Nov-12-2008.sfs
linux-2.6.27.5-patched-Nov-12-2008.sfs.md5

Ready to compile new proprietary drivers (I ran "make clean && make oldconfig && make prepare" before made the sfs file)
-----------------------------------------------------
I have added 2 pets and some sfs

Screenshot:

Image

full size:
http://noforum.de/pics/Addons-MU.jpg

They are international (include localization).
They were built in Muppy0084 without lzma compression.
So they can be used also in other puplets.
Like this they are slightly larger than needed, e.g. 14 MB instead of 12 MB.

MuppyFiler+Quickmount+Freemem+xscreensize+gqvie
+backgrounds+sfscombiner+clocks+pbdict2_411.sfs
(4 MB)
- My filemanager and drivemounter with Gtkbasic and Puppybasic.
- MIME-Editor to edit file associations
- xscreensize to get the screensize in scripts
- gqview is a pictureviewer
- some dark coloured backgrounds
- freememapplet in /root/Startup
- countdowntimer
- alarmclock
- analogclock
- SFS-Combiner to merge several SFS to one
- GtkBasic Panel (the Muppy-panel)
- Pbdict2 (online/offline dictionary with editable dictionaries)
This sfs might be upgraded in future with other small tools.
BUGFIX: REQUIRES:
http://dotpups.de/dotpups/Programming/P ... ic-2.6.pet


Dictionaries-pbdict2-Duden_411.sfs (7 MB)
- german Duden for pbdict2

Gnumeric182_411.sfs (14 MB)
- the Gnome spreadsheet

Python252+gdesklets_411.sfs (25 MB)
- Python_cssm and gdeskletts with 200 clockfaces

Opera-9.62+qt338b+qt-polymer_411.sfs (11 MB)
- Opera 9.62
- QT libraries needed by Opera
- QT theme to give QT a nicer look

Gimp-2.6.1_411.sfs (18 MB)
- the Gnu Image Manipulation Program

OO3-DE-US-FR-NL-IT_411.sfs (230 MB)
- OpenOffice 3 in 5 languages

kde3510_411.sfs (355 MB)
- KDE full from Muppy, english, french, german, dutch
REQUIRED:
* kde-3.5.10-libs_411.sfs
* Opera-9.62+qt338b+qt-polymer_411.sfs
RECOMMENDED for full functionality:
* Xaralx+Imagemagick637_411.sfs
* Python252+gdesklets_411.sfs

kde-3.5.10-libs_411.sfs (1 MB)
- adds missing libraries for KDE
This sfs might be updated on request, it is no checked in detail yet.

Xaralx+Imagemagick637_411.sfs (20 MB)
- Xara is a vectorgrafics drawing program
- imagemagick is a set of tools for imagemanipulation

Gamecollection01+libSDL_411.sfs (69 MB)
- abuse
- AceOfPenguins
- brickshooter-0.04-i486
- descent2
- dreamchess
- dwarfconnect4-1.0-i486
- eggchess
- flashgames
- freecell
- frogger-1.1
- gltron
- gsodoku
- kraptor
- lbreakout
- ltris
- mahjongg3d-0.96-i486
- mahjongx
- pacman
- pinball
- pinball-edit
- seahaven
- stormbaan
- timidity
- tkhearts
- touchmegames-0.2.2-i486
- tuxracer
- xgalaga-2.1.1.0-i486
- xgalaga-plusplus-0.7-i486
- xgammon
- xmgobang-0.52-i486
- xpat2
- xsoldier-1.4
- xtux
- zaxxon
- libSDL 1.2.13 with addons
Most games also need (see first message in this thread):
[More video drivers(opensource), 2D and 3D acceleration ]
or:
[nVidia drivers for Geforce 6 and newer gpus]



filemnt-patched.pet
- filemnt from Muppy, as I could not mount 2fs files with Puppys one.
Revised by wow.

gxmessage+yaf-splash-patched.pet
- replaces xmessage and yaf-splash with gxmessage, needed to display international UTF8 characters

Download:
http://puppyisos.org/isos/2008-07-to-12 ... .5/iso-01/

Get the current password from this message:
http://murga-linux.com/puppy/viewtopic.php?t=28930
Mark
Last edited by MU on Tue 23 Dec 2008, 18:54, edited 4 times in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#51 Post by wow »

Excellent MU, I'll link them to the first post ASAP (BTW I'm writing this from your Opera sfs on my usb flash drive)
Something else, I edited /usr/sbin/filemnt to work with the current FileManager (example, if you're running konqueror filemnt will open the mounted folder with konqueror)

Thank you
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#52 Post by MU »

I see.
I will have a closer look when I am offline visiting my mother:
http://www.murga-linux.com/puppy/viewtopic.php?t=36802

I could use a renamed filemnt for Muppyfiler then.
There also might be further small glitches.
E.g. in Muppy, I ran KDE from a script.
When you logged out KDE, a small utility was run, allowing to reboot or other options.

These are some tools I could not quickly port yet, so I will do that while I'm offline :)

Wish you all the best, please note, that from friday on, I cannot mirror files until I'm back.
But you could post the ftp access data if you need temporary space, so people can download via ftp directly from the incoming folder where you usually upload. But at moment it will be better to use filefront instead.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#53 Post by wow »

I modified your filemnt script, now it works with pcmanfm:

Code: Select all

 #!/bin/bash
##############  ROX app.: Click image files to mount & unmount.	by: Terry Becker	aka: SunBurnt

##############	File types = ".2fs, .3fs, .sfs, .iso, & initrd.gz".

# 4.00+LXDE wow: Added support for other file managers (basic implementation)

FILEMGR='rox -d' # use rox by default
 
# check if a file manager is running and launch it in this order (lightweight to heavy)
# example: if filemnt is launched from a ROX-Filer window and PCmanFM is running, the mounted file will be open in a new PCmanFM tab/window.

pgrep pcmanfm > /dev/null && FILEMGR='pcmanfm -t'
pgrep thunar > /dev/null && FILEMGR=thunar 
pgrep nautilus > /dev/null && FILEMGR='nautilus --no-desktop'
pgrep konqueror > /dev/null && FILEMGR=`konqueror`

 imgFile="$1"
 if [ -z "$imgFile" ] ;then exit 1 ;fi
 if [ "`dirname $imgFile`" = '\.' ] ;then
  imgFile="`pwd``echo $imgFile |sed 's/^\.//'`"
 fi
 MntPt='/mnt/'`echo "$imgFile" |sed "s#^\.##g" |sed "s#/#+#g"`
  

if [ 1 -eq 2 ] ;then	##############################################	JUMP OVER this SECTION.

 loMnts="`mount |grep '/dev/loop' |awk '{print $1}'`"
 echo "$loMnts" |while read LOOP					### test if file's mounted
 do
   loFile="`losetup-FULL $LOOP |sed 's/^.*(//' |sed 's/).*$//'`"
   if [ "$loFile" = "$imgFile" ] ;then
    echo -e "\n ### Loop File: $loFile"
    break
   fi
   i=`expr $i + 1`
 done

fi			##############################################	END of JUMP SECTION.


							### file's not mounted, mount it
# if [ $i -eq 16 ] ;then

 imgFileBASE="`basename "$imgFile"`" #BK

 if [ ! -d "$MntPt" ] ;then
 
  #BK check if already mounted elsewhere...
  for ONELOOP in `mount | grep '^/dev/loop' | cut -f 1 -d ' ' | tr '\n' ' '`
  do
   MNTDIMG="`losetup-FULL $ONELOOP | cut -f 2 -d '(' | cut -f 1 -d ')'`"
    IMGBASE="`basename "$MNTDIMG"`"
    #echo "IMGBASE=$IMGBASE imgFileBASE=$imgFileBASE" #TEST
    #not perfect, but paths may be symlinks...
    if [ "$IMGBASE" = "$imgFileBASE" ];then #if [ "$MNTDIMG" = "$imgFile" ];then
     xmessage "Sorry $imgFile is already mounted and in-use by Puppy"
     exit
    fi
  done
   
  Ext=`echo "$imgFile" |sed 's/^.*\.//'`	# get file type from extention
  if [ "$Ext" = '2fs' ] ;then
   Type=''
  elif [ "$Ext" = '3fs' ] ;then
   Type=''
  elif [ "$Ext" = 'sfs' ] ;then
   Type='-t squashfs'
  elif [ "$Ext" = 'iso' ] ;then
   Type='-t iso9660'
  # BK
  #elif [ "$imgFile" = 'initrd.gz' ] ;then
  # Type='ext2'
  # gunzip $imgFile				# handle gzip image file
  # imgFile="echo "$imgFile" |sed 's/.gz$//'"
  fi
  
  
#  echo -e "\nimgFile = $imgFile\t\tExt  = $Ext"
#  echo -e "MntPt   = $MntPt\t\tType = $Type\n"
  echo -e "\n ### Mount: $imgFile\n"
  mkdir -p "$MntPt"
  mount-FULL $Type -o loop "$imgFile" "$MntPt"
  Err=$?
  if [ $Err -eq 0 ] ;then
   $FILEMGR "$MntPt" # mount good, run rox filer
   yaf-splash -timeout 6 -font "8x16" -outline 0 -margin 4 -bg green -text "SUCCESS! Click $imgFileBASE icon again to unmount it" & #BK
  fi	 

 else							### file's mounted, unmount it
  rox -D "$MntPt" #BK
  umount-FULL "$MntPt"
  Err=$?
  rmdir "$MntPt"
  if [ "basename $imgFile" = 'initrd' ] ;then gzip -9 $imgFile ;fi
  yaf-splash -timeout 3 -font "8x16" -outline 0 -margin 4 -bg orange -text "Unmounting $imgFileBASE" #BK
  #Xdialog --title " Notice..." --no-button \
  #        --infobox "
  #UnMounting: $imgFile  
  #" 0 0 2000
  echo -e "\n ### UnMount: $imgFile\n"
 fi
 if [ $Err -gt 0 ] ;then			# ERROR: mount/unmount
  xmessage -title " ERROR..." "  Failed mounting or unmounting.  "
 fi
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#54 Post by MU »

cool, that was quick :)
I updated the pet with your new code.
Thanks!
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#55 Post by MU »

I updated 2 of my SFS.

Python252+gdesklets_411.sfs
- The libxml for python was not added correctly

MuppyFiler+Quickmount+Freemem+xscreensize+gqview +backgrounds+sfscombiner+clocks+pbdict2_411.sfs
- it now adds 3 desktop icons:
--- a "System" folder with all the symlinks wow posted here:
http://www.murga-linux.com/puppy/viewto ... 053#258053
Shown in pcmanfm, this looks a bit like the Windows Control Center ;)
--- an icon to reload lxde, from wows posting here:
http://www.murga-linux.com/puppy/viewto ... 197#257197
--- an icon to manage the desktop icons.
This will launch Muppyfiler with the 2 required folders opened, displaying a short text, that you can copy a .desktop file to add it to the desktop.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#56 Post by Lobster »

Image
MU tried your new xara but . . .

Code: Select all

# ./xaralx
Segmentation fault
# 
Opera worked OK and put an icon on the desktop
Open Office seems OK
Games some working - some not - Tuxracer not - that is a surprise as it works on most things. Descent 2 I got working nicely
Gimp seems OK - menu item is GNU Image Manipulation Program under graphcs in case some are unaware of its full title

Thanks Mark, some great programs - some of the best Open Source programs are now available :)

I hope to be playing one of the star war games (the Force Unleashed) on the Wii over Christmas.

Lobster + 'The Force' = Jedi Crustacean
MicroSith beware

Have a Great Christmas :D
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#57 Post by MU »

ok Lobster, I updated the xara sfs.
This was a bit tricky.
Xara requires some older Gtk libraries.
I added them in a folder /usr/local/Gtk-2.12.9.
To avoid conflicts with other programs, they are usually not used.
Only /usr/bin/xaralx will use them.
These old libraries cannot handle the new rgba option in the Murrina themes (that make the menubar transparent).

So I added the same themes without the rgba option, they are called like this: Murrina-Black-norgba.
The xaralx startscript will automatically use these ones, if one of wows rgba themes is active.
Like this I now can start Xara from the menu, open a drawing, and export it as jpg.

Please let me know, if you find other issues.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#58 Post by MU »

updated:
MuppyFiler+Quickmount+Freemem+xscreensize+gqview +backgrounds+sfscombiner+clocks+pbdict2_411.sfs

Changes:
- MuppyFiler now uses pcmanfm (if available) to open files if you doubleclick them. So the freedesktop.org mimetypes are used, not the one from Rox.
- Added my MIME-Editor. With this program you can modify or add mimetypes.

Example: you load the KDE sfs.
Now run the MIME-Editor, and click on "save changes".
This will update the mime-database.
Now you can open for example JPGs with a rightclick in pcmanfm using one of the KDE image programs.
Before the update, the KDE programs are not listed there.
If you right click a file in pcmanfm, and set the default application in the properties, then also Muppyfiler uses this default.

Or you have a file test.abc.
As files with the suffix .abc have no existing mimetype, you can use the MIME-Editor to create a new one like application/abc.
This then can be associated to a program you have to watch .abc files.

The MIME-Editor also includes a small dialog to create new ".desktop" files.
So you could create new ones if required.

I also plan to write a seperate utility to create .desktop files, that loads quicker.
So for example you have a textfile or script, that you want to add to your desktop.
In Rox, you could drag'n'drop it from a filerwindow.
With lxde, this does not work, as it needs a .desktop file in /root/Desktop/.
So we could need a utility, where you can drag files on, that then creates the new required .desktop file there (with the option to edit it).
Rox is more flexible or intuitive in this concern, as the desktop feature in lxde is pretty new.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#59 Post by wow »

International support:

Load this SFS file with "bootmanager", reboot and use the "chooselocale" command to switch to your language.

Download: md5sum:

Code: Select all

ae393b7c446535fcd923271166af96a0  lxde-pup411-i18n-r1.sfs
Contents: translations for:
  • ayttm-0.5.0-82
    abiword-2.6.4
    epdfview-r312-svn
    leafpad-0.8.15
    mp-5.1.0
    osmo-0.2.2
    atk-1.24.0
    galculator-1.3.1
    glib-2.18.2
    gnome-menus-2.24.1
    gtk+-2.14.4
    shared-mime-info-0.23
    lxappearance-0.2
    lxlauncher-0.2
    lxpanel-0.3.8.1
    lxsession-edit-0.1
    lxrandr-svn-r939
    lxsession-lite-svn-r939
    obconf-2.0.3
    openbox-3.4.7.2
    pcmanfm-0.5
    wget-1.10.2
    util-linux-2.12r
    sed-4.1.5
    grep-2.5.1
    gparted-0.3.3
    gftp-2.0.18
    gettext-0.15
    gcc-4.1.2
    findutils-4.2.28
    e2fsprogs-1.39
    coreutils-6.9
    glibc-i18n-2.5-noarch (slackware 12)
    rox-filer-2.8
Notes:
  • Galculator, There is no translation for "es" but "es_MX". Copy /usr/share/locale/es_MX/LC_MESSAGES/galculator.mo to /usr/share/locale/es/LC_MESSAGES/
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#60 Post by wow »

BUG: XKB Configuration Manager(xkbconfigmanager) can't successfully set the keyboard layout.

Workaround (Only for Xorg)
Use "setxkbmap" from command line, add this line to the end of your "/root/.xinitrc" file, just before "#exec $CURRENTWM" (around line 172), example for russian:

Code: Select all

setxkbmap -rules evdev -model evdev -layout ru,us -v 
ru,us: "ru" is the main layout and "us" an alternate layout.
Now install lxpanel-0.3.8.1-xkb_applet-i686.pet (attached below), press the right mouse button over any panel and choose[Add/Remove panel items] -> [Panel Applets] tab and press [Add] -> select [Keyboard layout switcher], press [Add] -> finally restart X (run "restartwm" in terminal)
Image
Attachments
lxpanel-0.3.8.1-xkb_applet-i686.pet
Keyboard layout switcher
(67.46 KiB) Downloaded 715 times
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

wow
Posts: 1052
Joined: Fri 30 Jun 2006, 00:18
Location: Peru

#61 Post by wow »

magerlab wrote:i also tryed to boot on EEE PC( wifi is recognized but tuochpad do not work properly)
Try to copy more input drivers from
Xorg-7.4-video-input-apps-i686.sfs/usr/X11R7/lib/xorg/modules/input to /usr/X11R7/lib/xorg/modules/input
and:
Xorg-7.4-video-input-apps-i686.sfs/usr/X11R7/bin/* to /usr/X11R7/bin
[url=http://www.puppylinux.com][img]http://i.imgur.com/M4OyHe1.gif[/img][/url]

Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

#62 Post by Sage »

This one may be of interest:
http://www.zevenos.com/
also using the LXPanel? Will try it later.

User avatar
capoverde
Posts: 232
Joined: Wed 28 Jun 2006, 21:36
Location: Sanremo (Italy) with fine seaview

#63 Post by capoverde »

Installed Firefox with the .pet package manager: it starts only from the terminal although its icon appeared immediately in the menu (probably I should reboot, but I'm just doing a quick test now).

Changed background effortlessly, pic viewer works fine etc. -- but everything seems a little slower than with the regular Puppy; possibly lxde's fault?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#64 Post by MU »

while I am away, I will try to make a pet or sfs with icewm.
So you can get a desktop that resembles Puppys standard desktop.
Then we also can compare the speed, too.
One thing to speed things up:
deactivate xcompmgr in the openbox configuration.
That is the tool that draws the shadows.
It really can slow things down on older computers like mine (Pentium 700).
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

techtype
Posts: 180
Joined: Sun 16 Nov 2008, 17:04

Setting DPI

#65 Post by techtype »

I've got most everything working now, but how do you set the DPI after adding the nvidia drivers?

Edit: here is the answer-- edit xorg.conf as follows, by uncommenting the line that you want --

The formula for calculating the DisplaySize values is Width (in inches) x 25.4 / DPI and Height (in inches) x 25.4 / DPI. If you're running Xorg with a resolution of 1024x768 and want a DPI of 96, use 1024 x 25.4 / 96 and 768 x 25.4 / 96. Round numbers down. (xorg.conf expects width/height specifications to be given in milimeters. There are 25.4 milimeters per inch, thus the need to multiply by 25.4)


# calc: (x|y)pixels * 25.4 / dpi
# DisplaySize 168 126 # 96 DPI @ 640x480
# DisplaySize 210 157 # 96 DPI @ 800x600
# DisplaySize 269 201 # 96 DPI @ 1024x768
# DisplaySize 302 227 # 96 DPI @ 1152x864
# DisplaySize 336 252 # 96 DPI @ 1280x960
# DisplaySize 336 210 # 96 DPI @ 1280x800 (non 4:3 aspect)
# DisplaySize 339 271 # 96 DPI @ 1280x1024 (non 4:3 aspect)
# DisplaySize 370 277 # 96 DPI @ 1400x1050
# DisplaySize 380 238 # 96 DPI @ 1440x900 (non 4:3 aspect)
# DisplaySize 420 315 # 96 DPI @ 1600x1200
# DisplaySize 444 277 # 96 DPI @ 1680x1050 (non 4:3 aspect)
# DisplaySize 506 315 # 96 DPI @ 1920x1200 (non 4:3 aspect)


In case X ignores your DisplaySize setting (known bug) add the following line in the Device section.
Option "NoDDC" "true"


For nVidia drivers you may have to disable automatic detection of DPI to set it manually. There is also an easier way to set DPI on these cards. Either or both of the following lines can be set in the device section for your nVidia card.
Option "UseEdidDpi" "false"
Option "DPI" "96 x 96"

Post Reply