Need help with xorg.conf solved

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Kiwi-Hawk

Need help with xorg.conf solved

Post by Kiwi-Hawk »

Hi

I need to edit my xorg.conf so I can get the res back to 1360x786
but I'm not sure of syntax

Code: Select all

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
#   sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"us"
	Option		"XkbOptions"	"lv3:ralt_switch"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "Device"
	Identifier	"Configured Video Device"
	Boardname	"vesa"
	Busid		"PCI:2:0:0"
	Driver		"nvidia"
	Screen	0
	Option		"NoLogo"	"True"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
	Vendorname	"Generic LCD Display"
	Modelname	"LCD Panel 1360x768"
	Horizsync	31.5-48.0
	Vertrefresh	56.0	-	65.0
  modeline  "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
  modeline  "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
  modeline  "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
  modeline  "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
	Gamma	1.0
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Configured Video Device"
	Monitor		"Configured Monitor"
	Defaultdepth	24
	SubSection "Display"
		Depth	24
		Virtual	1024	768
		Modes		"1024x768@60"	"800x600@60"	"800x600@56"	"640x480@60"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
  screen 0 "Default Screen" 0 0
EndSection
Section "Module"
	Load		"glx"
	Load		"v4l"
EndSection
Section "device" #   
	Identifier	"device1"
	Boardname	"vesa"
	Busid		"PCI:2:0:0"
	Driver		"vesa"
	Screen	1
EndSection
Section "screen" #   
	Identifier	"screen1"
	Device		"device1"
	Defaultdepth	24
	Monitor		"monitor1"
EndSection
Section "monitor" #   
	Identifier	"monitor1"
	Gamma	1.0
EndSection
Section "ServerFlags"
EndSection
I don't know what figures to put in the line:

modeline "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync

Putting modeline "1360x768@60 but what figuers go next

I can do the:

modes "1024x768@60" "800x600@60" "800x600@56" "640x480@60

to

modes "1360x786" "1024x768@60" "800x600@60" "800x600@56" "640x480@60

Ok but will that work if the modline is not there or correct?

Cheers
Kiwi-Hawk
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

Re: Need help with xorg.conf

Post by Husse »

This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
This line in your xorg.conf tells it all - something has happened so your X is running in the emergency mode
(Re)install the video drivers and hopefully you're done
And please always include the version of Mint and what hardware you have
Kiwi-Hawk

Re: Need help with xorg.conf

Post by Kiwi-Hawk »

Hi

I have no idea why it reset it's self and reinstalling the driver did not work
My system is:
AMD Duel-Core 6400+
2gig 1066 DDR2 ram
Audigy 2 Audio
Nvidia 7900 512mg video card

and I'm using a 40 Samsung LA series HDMI TV as monitor

this gives me 1360x786 in first install once I enable th nvidia driver.

When this autoconfig back up happens it does not back up the config thats there it jus overwrites it
so it's hard to go back less your a programmer or know just what to put in you xorg.conf

Code: Select all

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by failsafeDexconf, using
# values from the debconf database and some overrides to use vesa mode.
#
# You should use dexconf or another such tool for creating a "real" xorg.conf
# For example:
#   sudo dpkg-reconfigure -phigh xserver-xorg
Section "InputDevice"
   Identifier   "Generic Keyboard"
   Driver      "kbd"
   Option      "XkbRules"   "xorg"
   Option      "XkbModel"   "pc105"
   Option      "XkbLayout"   "us"
   Option      "XkbOptions"   "lv3:ralt_switch"
EndSection

Section "InputDevice"
   Identifier   "Configured Mouse"
   Driver      "mouse"
   Option      "Emulate3Buttons"   "true"
EndSection

Section "Device"
   Identifier   "Configured Video Device"
   Boardname   "vesa"
   Busid      "PCI:2:0:0"
   Driver      "nvidia"
   Screen   0
   Option      "NoLogo"   "True"
EndSection

Section "Monitor"
   Identifier   "Configured Monitor"
   Vendorname   "Generic LCD Display"
   Modelname   "LCD Panel 1360x768"
   Horizsync   31.5-48.0
   Vertrefresh   56.0   -   65.0
  modeline  "640x480@60" 25.2 640 656 752 800 480 490 492 525 -vsync -hsync
  modeline  "800x600@56" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
  modeline  "800x600@60" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
  modeline  "1024x768@60" 65.0 1024 1048 1184 1344 768 771 777 806 -vsync -hsync
   Gamma   1.0
EndSection

Section "Screen"
   Identifier   "Default Screen"
   Device      "Configured Video Device"
   Monitor      "Configured Monitor"
   Defaultdepth   24
   SubSection "Display"
      Depth   24
      Virtual   1024   768
      Modes      "1024x768@60"   "800x600@60"   "800x600@56"   "640x480@60"
   EndSubSection
EndSection

Section "ServerLayout"
   Identifier   "Default Layout"
  screen 0 "Default Screen" 0 0
EndSection
Section "Module"
   Load      "glx"
   Load      "v4l"
EndSection
Section "device" #   
   Identifier   "device1"
   Boardname   "vesa"
   Busid      "PCI:2:0:0"
   Driver      "vesa"
   Screen   1
EndSection
Section "screen" #   
   Identifier   "screen1"
   Device      "device1"
   Defaultdepth   24
   Monitor      "monitor1"
EndSection
Section "monitor" #   
   Identifier   "monitor1"
   Gamma   1.0
EndSection
Section "ServerFlags"
EndSection]
I what I have and I can not get it back to 1360x786 because the system over writes it

Is there a modprobe or such command I can use to scan and get it to pickup the hardware again?

Kiwi-Hawk
Husse

Re: Need help with xorg.conf

Post by Husse »

???
Happened again?!
Could be that the monitor is so out of the ordinary that the X server gets confused
When I've switched to a nvidia computer I'll give you a xorg.conf for nvidia
Kiwi-Hawk

Re: Need help with xorg.conf

Post by Kiwi-Hawk »

Hi

This is becoming a split sorry,..

I was trying to sort out my Logitech MX5000 and the howto had instructions for
editing the input device in xorg.conf so all the mouse buttons work and I think thats what killed it

I now have a clean install and I have got mouse and keyboard in my bluetooth list
but it's that same obex error stopping it from working

Cheers
Kiwi-Hawk
Husse

Re: Need help with xorg.conf

Post by Husse »

Here is a standard xorg.conf for the main Elyssa with nvidia

Code: Select all

# xorg.conf (X.Org 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 xorg.conf manual page.
# (Type "man 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 "Screen"
	Identifier	"Default Screen"
	Monitor		"Configured Monitor"
	Device		"Configured Video Device"
	Option		"AddARGBGLXVisuals"	"True"
	Defaultdepth	24
EndSection

Section "Device"
	Identifier	"Configured Video Device"
	Driver		"nvidia"
	Option		"DynamicTwinView"	"False"
EndSection

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

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Emulate3Buttons"	"true"
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
  screen "Default Screen"
EndSection

Section "Monitor"
	Identifier	"Configured Monitor"
EndSection

Section "Extensions"
	Option		"Composite"	"Enable"
EndSection
You have to edit
Option "XkbLayout" "se" to what ever you have
That bluetooth problem is a hard nut to crack
Kiwi-Hawk

Re: Need help with xorg.conf

Post by Kiwi-Hawk »

Hi

This is the tut I was working with
http://ubuntuforums.org/showthread.php? ... ech+MX5000

I managed to get it working don't ask how lol it was not looking good hidd --search was bring up nothing and I knocked
the mouse and got movement so I tested the keyboard and bingo it working too.

the bit that worries me and I haven't done it yet is the xorg.conf edit to put in:

current code is

Code: Select all

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Emulate3Buttons"	"true"
EndSection
Edit to replace with:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Emulate3Buttons" "false"
Option "Buttons" "7"
Option "ButtonMapping" "1 2 3 6 7"
Option "ZAxisMapping" "4 5"
EndSection
This is what broke my desktop last time so not sure I want to go there

I notice to over a little time the device's loose connection and I have to run hidd --search again and reconnect
this could get to be a problem
Cheers
Kiwi-Hawk
Husse

Re: Need help with xorg.conf

Post by Husse »

If this

Code: Select all

    Section "InputDevice"
       Identifier   "Configured Mouse"
       Driver      "mouse"
       Option      "CorePointer"
       Option      "Emulate3Buttons"   "true"
    EndSection
works - leave it at that - remember my signature
But the only thing I haven't seen before is
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
and its all in the "mouse department" so I don't really understand why it should break your desktop...
The rest below that controls how your mouse buttons work
Kiwi-Hawk

Re: Need help with xorg.conf

Post by Kiwi-Hawk »

HI

What you say is very true,.. I jus need to stop it fading away and make it load on reboot.

Option "Emulate3Buttons" "false"
Option "Buttons" "7"
Option "ButtonMapping" "1 2 3 6 7"
Option "ZAxisMapping" "4 5"

To get full mouse function shouldn't hurt then right?

Cheers
Kiwi-Hawk
Husse

Re: Need help with xorg.conf

Post by Husse »

If these mouse options (kept inside the mouse section of course) knocks out your video I'd be more than surprised
Kiwi-Hawk

Re: Need help with xorg.conf

Post by Kiwi-Hawk »

Hi

Ok it's all cool and working well now on gnome,.. I have Enlightenment installed and the font size is outta this world
in my apps firefox and letters about 3" high.

I notice that this line is not used in the xorg.conf DisplaySize xxx xxx
is that wgat sets the font size or is it somit else?

Thanks for all you help by the way

this is the bluetooth file if its a help:
# Defaults for bluez-utils

# This file supersedes /etc/default/bluez-pan. If
# that exists on your system, you should use this
# file instead and remove the old one. Until you
# do so, the contents of this file will be ignored.

# start bluetooth on boot?
# compatibility note: If this variable is not found bluetooth will
# start
# BLUETOOTH_ENABLED=1

# This setting will switch HID devices (e.g mouse/keyboad) to HCI mode, that is
# you will have bluetooth functionality from your dongle instead of only HID.
# Note that not every bluetooth dongle is capable of switching back to HID
# mode, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=355497
HID2HCI_ENABLED=1

############ HIDD
#
# HID daemon
HIDD_ENABLED=1
HIDD_OPTIONS="--master --server"
# to make hidd always use a particular interface, use something
# like this, substituting the bdaddr of the interface:
# HIDD_OPTIONS="-i AA:BB:CC:DD:EE:FF --server"
#
# remove '--master' if you're having trouble working with Ericsson
# T630 phones with hidd operational at the same time.

############ COMPATIBILITY WITH OLD BLUEZ-PAN
# Compatibility: if old PAN config exists, use it
# rather than this file.
if test -f /etc/default/bluez-pan; then
. /etc/default/bluez-pan
return
fi
############

############ DUND
#
# Run dund -- this allows ppp logins. 1 for enabled, 0 for disabled.
DUND_ENABLED=0

# Arguments to dund: defaults to acting as a server
DUND_OPTIONS="--listen --persist"

# Run dund --help to see the full array of options.
# Here are some examples:
#
# Connect to any nearby host offering access
# DUND_OPTIONS="--search"
#
# Connect to host 00:11:22:33:44:55
# DUND_OPTIONS="--connect 00:11:22:33:44:55"
#
# Listen on channel 3
# DUND_OPTIONS="--listen --channel 3"

# Special consideration is needed for certain devices. Microsoft
# users see the --msdun option. Ericsson P800 users will need to
# listen on channel 3 and also run 'sdptool add --channel=3 SP'

############ PAND
#
# Run pand -- ethernet: creates new network interfaces bnep<N>
# that can be configured in /etc/network/interfaces
# set to 1 for enabled, 0 for disabled
PAND_ENABLED=0

# Arguments to pand
# Read the PAN howto for ways to set this up
# http://bluez.sourceforge.net/contrib/HOWTO-PAN
# in later versions of pand it used to execute /etc/bluetooth/pan/dev-up
# automatically, now you will need to use the --devup/--devdown options. See
# the pand manpage for more informations
PAND_OPTIONS=""

# example pand lines
#
# Act as the controller of an ad-hoc network
# PAND_OPTIONS="--listen --role GN"
#
# Act as a network access point: routes to other networks
# PAND_OPTIONS="--listen --role NAP"
#
# Act as a client of an ad-hoc controller with number 00:11:22:33:44:55
# PAND_OPTIONS="--role PANU --connect 00:11:22:33:44:55"
#
# Connect to any nearby network controller (access point or ad-hoc)
# PAND_OPTIONS="--role PANU --search"

############ SDPTOOL
# this variable controls the options passed to sdptool on boot, useful if you
# need to setup sdpd on boot.
# options are ;-separated, i.e. for every ; an sdptool instance will be
# launched
#
# examples:
# SDPTOOL_OPTIONS="add --channel=3 SP" # ericsson P800 serial profile
# SDPTOOL_OPTIONS="add --channel=8 OPUSH ; add --channel=9 FTRN" # motorola
and my xorg.conf:
# xorg.conf (X.Org 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 xorg.conf manual page.
# (Type "man 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 "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Emulate3Buttons" "false"
Option "Buttons" "7"
Option "ButtonMapping" "1 2 3 6 7"
Option "ZAxisMapping" "4 5"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "nvidia"
Option "NoLogo" "True"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Defaultdepth 24
EndSection

Section "ServerLayout"
Identifier "Default Layout"
screen "Default Screen"
EndSection
Section "Module"
Load "glx"
EndSection
and my hcid.conf file
Tha I forgot to put in yesterday
#
# HCI daemon configuration file.
#

# HCId options
options {
# Automatically initialize new devices
autoinit yes;

# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;

# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;

# Default PIN code for incoming connections
passkey "1234";
}

# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";

# Local device class
class 0x000100;

# Default packet type
#pkt_type DH1,DM1,HV1;

# Inquiry and Page scan
iscan enable; pscan enable;
discovto 0;

# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;

# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;
}
device <Mac-address> {
name "Logitech MX5000 Keyboard";
auth enable;
encrypt enable;
}
device <Mac_address> {
name "Logitech MX1000 mouse"
}
Don't know if they help others with Blutooth MX5000 or not

Cheers
Kiwi-Hwak
Locked

Return to “Graphics Cards & Monitors”