[+] rozdzielczo

Zagadnienia dotyczące menadżerów okien, środowisk graficznych - X, KDE, GNOME, Fluxbox, XFCE., Compiz itp.
lo53r
Posty: 15
Rejestracja: 14 maja 2008, 13:44

[+] rozdzielczość ekranu startowego oraz dpi czcionek w xfce

Post autor: lo53r »

Witam.

Korzystam ze środowiska graficznego Xfce4 i mam następujące dwa problemy.

Pierwszy: W jaki sposób nakłonić GDM aby ekran logowania był wyświetlany w rozdzielczości, którą ja będę uznawać.

Drugi: Dotarłem do opisu w jaki sposób nakłonić Xfce do używania czcionki w DPI 96 jednak mimo wszystkiego wyświetla czcionkę w odmienny sposób niż mój zakładany.

A oto sposób jaki znalazłem na problem 2:

Kod: Zaznacz cały

> 1 - Remove old config file's:
> rm ~/.config/xfce4/Xft*
>
> 2 - Create new settings:
> Menu -> Settings -> User Interface Preferences
> Font Rendering:
> RECHECK all checkboxen with these settings:
> Use anti-aliasing for fonts
> Use hinting: Full
> Use sub-pixel hinting: RGB
>
> 3 - Go to
> mousepad ~/.config/xfce4/Xft.xrdb
> And paste in the last line:
> Xft.dpi: 96
> (always leave a emty line)
>
> Looks now like this:
> Xft.antialias: 1
> Xft.hinting: 1
> Xft.hintstyle: hintfull
> Xft.rgba: rgb
> Xft.dpi: 100
>
> Save and exit the Xft.xrdb file
>
> 4 - Edit xorg
> sudo mousepad /etc/X11/xorg.conf
> And paste in under Section "Files" (if it's not there alread):
> FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
> FontPath "/usr/share/X11/fonts/100dpi"
>
> Looks now like this:
> Section "Files"
>         FontPath        "/usr/share/X11/fonts/misc"
>         FontPath        "/usr/share/X11/fonts/cyrillic"
>         FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
>         FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
>         FontPath        "/usr/share/X11/fonts/Type1"
>         FontPath        "/usr/share/X11/fonts/100dpi"
>         FontPath        "/usr/share/X11/fonts/75dpi"
>         FontPath        "/usr/share/fonts/X11/misc"
>         # path to defoma fonts
>         FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
> EndSection
Tego wlasciwie nie jestem pewien

Kod: Zaznacz cały

>
> 5 - Create a DisplaySize property
>         Go to Section "Monitor"
>         My resolution is 1440x900
>         width = 1440
>         heigth = 900
>         formula = pixelwidth/dpi*25.4 and pixelheight/dpi*25.4
>         1440/96*25.4 and 900/96*25.4 =
>         DisplaySize     381 238.125
>
> Looks now like this:
> Section "Monitor"
>         Identifier      "Generic Monitor"
>         Option          "DPMS"
>         Modeline        "1440x900" 106.50 1440 1520 1672 1904 900 903 909
> 934 -Hsync +Vsync
>         DisplaySize     381 238.125
>         HorizSync       30-81
>         VertRefresh     56-75
> EndSection
>
> Save and exit the xorg.conf file
>
> Restart the system.
>
> Tips:
> 1 - You can also test to use 100 dpi everywere
> 2 - If openoffice gives you a hard time remove (removes al you openoffice
> settings)
>         rm ~/.openoffice.org2
> 3- Use these commands to see your settings
>         xdpyinfo |grep resolution
>         xrdb -q |grep Xft

sp3cu
Posty: 4
Rejestracja: 17 kwietnia 2008, 23:32

Post autor: sp3cu »

DPI czcionek najłatwiej zmienić w X.orgu:

Kod: Zaznacz cały

Section "Device"
        Driver      "nvidia"
[...]
Option "UseEdidDpi" "false"
Option "DPI" "96 x 96"
EndSection
Awatar użytkownika
Ridd
Posty: 83
Rejestracja: 26 listopada 2008, 10:23

Post autor: Ridd »

Witam.

Przypisuje się do tematu w sprawie rozdzielczości ekranu logowania (Używam KDE).

Słyszałem, że trzeba coś zmienić w xorgu, ale nie wiem co?

Mój /etc/X11/xorg.conf:

Kod: Zaznacz cały

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/X11R6/lib/X11/fonts/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	FontPath	"/usr/X11R6/lib/X11/fonts/cyrillic"
	FontPath	"/usr/share/fonts/X11/100dpi/:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/75dpi/:unscaled"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/X11R6/lib/X11/fonts/Type1"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/X11R6/lib/X11/fonts/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	FontPath	"/usr/X11R6/lib/X11/fonts/75dpi"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"i2c"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"pl"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "Device"
	Identifier	"nVidia Corporation NV10 [GeForce 256 SDR]"
	Driver		"nv"
	BusID		"PCI:1:0:0"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	Option		"DPMS"
	HorizSync	28-72
	VertRefresh	43-60
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"nVidia Corporation NV10 [GeForce 256 SDR]"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1440x900" "1400x1050" "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1440x900" "1400x1050" "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1440x900" "1400x1050" "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1440x900" "1400x1050" "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1440x900" "1400x1050" "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1440x900" "1400x1050" "1280x1024" "1280x960" "1280x854" "1280x800" "1280x768" "1200x800" "1152x864" "1152x768" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection
Rozdzielczość jaką chcę ustawić to 1280x1024.
Akkon
Junior Member
Posty: 833
Rejestracja: 09 listopada 2007, 14:06

Post autor: Akkon »

Ridd pisze:Słyszałem, że trzeba coś zmienić w Xorg`u
Z sekcji Screen/Display/Modes trzeba zostawić tylko te rozdzielczości, których się używa. Najlepiej maksymalną (dla Waszych monitorów), optymalną i oczko niższą od optymalnej.
Awatar użytkownika
Ridd
Posty: 83
Rejestracja: 26 listopada 2008, 10:23

Post autor: Ridd »

Czyli wywalić wszystkie i zostawić natywną (1280x1024) i 1024x768?
Akkon
Junior Member
Posty: 833
Rejestracja: 09 listopada 2007, 14:06

Post autor: Akkon »

Ridd pisze:Czyli wywalić wszystkie i zostawić natywną (1280x1024) i 1024x768?
Tak, we wszystkich pozycjach. Wcześniej jednak dla bezpieczeństwa zrobić backup xorga.
Awatar użytkownika
Ridd
Posty: 83
Rejestracja: 26 listopada 2008, 10:23

Post autor: Ridd »

Temat do zamknięcia, nie jestem autorem wątku, więc zostawiam to Adminowi.
Akkon
Junior Member
Posty: 833
Rejestracja: 09 listopada 2007, 14:06

Post autor: Akkon »

Ridd pisze:Temat do zamknięcia, nie jestem autorem wątku
Znaczy się moja rada pomogła?
:-D
Awatar użytkownika
Ridd
Posty: 83
Rejestracja: 26 listopada 2008, 10:23

Post autor: Ridd »

Tak ;]
ODPOWIEDZ