LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-22-2010, 03:37 PM   #1
mrpurple
Member
 
Registered: May 2010
Posts: 50

Rep: Reputation: 2
broken prtscn button kills my ubuntu


Hi I'm keen to install Ubuntu on my old laptop
(HP ze4500 2.4GHz 1Gb Ram 120GbHDD) But during installation (I presume as soon as the screen capture function becomes available) A zillion screen capture screens appear and lock up the system.

It may be due to my prtscn button being missing. Actually its just the plastic part and the rubber button mechanism is still present. The button works without the plastic part completely fine in windows. That is to say I can press it when I want to use it and it works and it does nothing noticable otherwise.

Seems like a pretty trivial way to kill ubuntu, perhaps there's a trivial way to solve this problem on my laptop without replacing it?

I do get through to the desktop sometimes if i carefully dont touch the keyboard and shutdown the screencapture panels as they appear. It doesnt seem to matter which method i use to get into the desktop though livecd/install alongside windows/fresh install.
 
Old 06-22-2010, 04:33 PM   #2
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 69
A quick google search for "how to disable a keyboard key ubuntu" gives several promising results. The first one looks good.
 
Old 06-23-2010, 01:51 AM   #3
mrpurple
Member
 
Registered: May 2010
Posts: 50

Original Poster
Rep: Reputation: 2
Thanks, yeh google is cool when you know what your looking for

So it would seem that xev and xmodmap are the key so to speak... However

I cant do anything by the time the desktop is visable so I needed to get to the terminal during boot. more googling and I see that ctrl-alt-f1 opens me up a terminal before my system starts and subsiquently gets thrown by my faulty key

unfortunately within the terminal that o open during boot xev and xmodmap result in "unable to open display '' "

more googling and it seems that both of these commands, which the vast majority of help on remapping keyboards are based on, seem to need the KDE to be up and running which is no good if your faulty key is killing the KDE. Maybe I should use xkb? unfortunanely instructions on its use look like instructions to build the space shuttle in greek to me.

I didnt think It'd be that difficult. Perhaps I'm missing something simple to get those commands or something equivilent which will work at the terminal in order to remap the keyboard before going to the desktop.

Anyone know of such a thing or what I've got wrong?
 
Old 06-23-2010, 10:41 AM   #4
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 69
You will then probably have to find the correct file to modify. For gnome it looks to be /home/<username>/.gconf/desktop/gnome/peripherals/keyboard/host-<computer-hostname>/0/%gconf.xml. Sorry, I don't have KDE on this install, but I would imagine it is similar.

Here's mine:
Code:
<?xml version="1.0"?>
<gconf>
        <entry name="numlock_on" mtime="1277205094" type="bool" value="false"/>
</gconf>
Perhaps add a line similar to:
Code:
<?xml version="1.0"?>
<gconf>
        <entry name="numlock_on" mtime="1277205094" type="bool" value="false"/>
        <entry name="prt_scrn" mtime="" type="bool" value="false"/>
</gconf>
Maybe someone with KDE can help more, I'm just guessing at this point, but maybe this will get you further. Sorry I can't help more.
 
Old 06-26-2010, 10:35 PM   #5
mrpurple
Member
 
Registered: May 2010
Posts: 50

Original Poster
Rep: Reputation: 2
I havent had any luck locating the part of the X conf files to modify but I did finally get a long enough go on Gnome, before it hung out, to get into the terminal and run
Code:
xmodmap -pke
xmodmap -e 'keycode 107 = NoSymbol'
which solved my problem after a reboot. (xmodmap -pke indicated the 107 code for printscreen in my case).
So while it wasnt really the solution I was after I did get it sorted in the end.

Thanks guys

Last edited by mrpurple; 06-26-2010 at 10:37 PM.
 
Old 06-27-2010, 02:35 PM   #6
brucehinrichs
Member
 
Registered: Mar 2008
Location: US
Distribution: Debian Sid; Sabayon, UbuntuStudio, Slackware-multilib 13.1, Peppermint Ice, CentOS
Posts: 575

Rep: Reputation: 69
Glad you got it sorted! If you're happy with the solution, please mark the thread as [SOLVED] using the thread tools at the top of the first post.
 
Old 06-28-2010, 03:37 AM   #7
mrpurple
Member
 
Registered: May 2010
Posts: 50

Original Poster
Rep: Reputation: 2
Actually we're on the right track but I wouldnt call it solved.

In another forum I see that I should put the command in the System, Preferences, Sessions, Startup Programs folder, Add. In order to make it perminant.

That does work but if I could find a way to add the command from the terminal (preferably one not requiring the kde as xmodmap does) Then someone with a keyboard which kills their laptop would have a better shot at saving it.

I will have look myself. Quick googling gives many options . As soon as I have a working method I will post for others. Possibly based on /etc/rc.local

Last edited by mrpurple; 06-28-2010 at 03:44 AM.
 
Old 06-28-2010, 04:36 AM   #8
mrpurple
Member
 
Registered: May 2010
Posts: 50

Original Poster
Rep: Reputation: 2
editing rc.local didnt work
and as it turns out when I finally got to the start up add part and added the xmodmap -e line and deleted the prtscn key perminantly (checked this with restarts)

Even with no prtscn key (checked with xmodmap -pke) My laptop is still being shut down by repeated screen captures.

After 10+ hours I'm officailly giving up on ubuntu for this laptop...

and leaving this post unsolved.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unmount kills /dev/scd0 - Ubuntu 8.10 amd64 joker20 Ubuntu 0 02-03-2009 01:41 PM
LXer: Ubuntu Kills Linux, Then Self, Dell Suspected of Foul Play. LXer Syndicated Linux News 0 08-14-2007 01:50 AM
irw kills lircd on Ubuntu 7.04 (w/MythTV) nudnik Linux - Software 0 06-03-2007 04:09 PM
Ubuntu kills internet connection gentisle Ubuntu 2 05-12-2005 04:02 PM
Ubuntu kills internet connection gentisle Linux - Newbie 2 05-11-2005 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration