You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

dkaddict

Beginner

  • "dkaddict" started this thread

Posts: 7

Location: London UK

Occupation: loafer

  • Send private message

1

Tuesday, March 6th 2007, 8:48pm

[solved]Text editor error message

Got an annoying problem that I cannot work out so any help will be received with thanx.

Ok, whenever I try to edit a text file, say for example, /etc/apt/sources.list, this happens...

In a terminal (konsole) I input

':~$ sudo kate /etc/apt/sources.list'

and konsole gives me this-

X Error: BadDevice, invalid or uninitialized input device 171
Major opcode: 146
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 171
Major opcode: 146
Minor opcode: 3
Resource id: 0x0
Failed to open device
DCOPClient::attachInternal. Attach failed Could not open network socket
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kded: cannot connect to X server :0.0
DCOP aborting call from 'anonymous-4793' to 'kded'
kded: ERROR: Communication problem with kded, it probably crashed.
kate: WARNING: Pixmap not found for mimetype application/pgp-keys

before opening the file which I want to edit. I can edit and save the changes to the file and they are executed correctly.

(The same sort of message used to be displayed by the terminal in Gnome when I called gedit to open a text file that I wanted to edit only it used to complain about dbus sessions or something.)

I am a relative newb to Linux so can't make head nor tail of this message-well that's not entirely true-I know xserver has something to do with my display (?) I think.
Can anyone help?

I am running-
Kubuntu Edgy
2.6.17-11 kernel

on a

Fujitsu Siemens Amilo L7310GW notebook
with
Via S3GUnichrome Pro IGP graphics
being driven by the
'openchrome' trunk driver

All replies received with thanx

dkaddict
As long as it is linux it's ok

This post has been edited 1 times, last edit by "dkaddict" (Mar 8th 2007, 8:51am)


2

Wednesday, March 7th 2007, 2:36pm

if kate works fine, you can ignore those commandline warnings.
Help mee om KDE 3.5.5 in het Nederlands te vertalen

dkaddict

Beginner

  • "dkaddict" started this thread

Posts: 7

Location: London UK

Occupation: loafer

  • Send private message

3

Thursday, March 8th 2007, 9:08am

Solved Text editor error message

I managed to solve this by doing the following (I was directed to the answer by someone else, I ain't smart enough to work stuff like this out on my own)

Ok

In a terminal I put

~'kdesu kate /etc/X11/xorg.conf'

and commented out the following-

#Section “InputDevice”
# Driver “wacom”
# Identifier “eraser”
# Option “Device” “/dev/wacom” # Change to
# /dev/input/event
# for USB
# Option “Type” “eraser”
# Option “ForceDevice” “ISDV43 # Tablet PC ONLY
#EndSection

#Section “InputDevice”
# Driver “wacom”
# Identifier “cursor”
# Option “Device” “/dev/wacom” # Change to
# /dev/input/event
# Option “ForceDevice” “ISDV43 # Tablet PC ONLY
#EndSection

#Section “InputDevice”
# Driver “wacom”
# Identifier “cursor”
# Option “Device” “/dev/wacom” # Change to
# /dev/input/event
# for USB
# Option “Type” “cursor”
# Option “ForceDevice” “ISDV43 # Tablet PC ONLY
#EndSection

also I had to comment out

Section “ServerLayout”
Identifier “Default Layout”
Screen “Default Screen”
InputDevice “Generic Keyboard”
InputDevice “Configured Mouse”
# InputDevice “stylus” “SendCoreEvents”
# InputDevice “cursor” “SendCoreEvents”
# InputDevice “eraser” “SendCoreEvents”
InputDevice “Synaptics Touchpad”
EndSection

those three lines.

And then I had to turn off ACPI by editing /boot/grub/menu.lst.
~kdesu kate /boot/grub/menu.list

and added 'noapic' to the end of each of the kernel lines, eg

title Ubuntu, kernel 2.6.17-11-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda2 ro quiet splash noapic
initrd /boot/initrd.img-2.6.17-11-generic
quiet
savedefault
boot

Saved exited, rebooted and all of the problems I had were gone.

Adding the noapic entry to the /grub/menu.list file also enabled the hotplugging of USB devices on my laptop, a problem I have been trying to sort out for ages.
I reckon there should be a how 2 for that cos I am always seeing posts which refer to the lack of hotplugging of usb devs.

Anyway, cheers for all of the support!

dkaddict
As long as it is linux it's ok