Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CTRL-ALT-DEL equivalent on PPC??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
dargosch
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2003
Posts: 101

PostPosted: Mon Sep 15, 2003 8:33 pm    Post subject: CTRL-ALT-DEL equivalent on PPC?? Reply with quote

Hi all,

I've been using Linux for a while now, but am not that experienced with the PPC hardware and the interaction between it and Linux.

So, therefore I have to ask: is there an equivalent to the almighty three-finger-salute on this platform, or a suggestion how to emulate one.. it is really for the times when X still responds to keybord, but the GUI is f??ked..
:lol:

Does anyone have any suggestions :?:
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Mon Sep 15, 2003 9:14 pm    Post subject: Reply with quote

control-alt-backspace will kill the X session by default still, just like on x86. (on my ibook's keyboard, the backspace key is labelled 'delete' but it's really the backspace key).

you can also try control-alt-F1 to get to a console.

maybe fn-control-alt-backspace would invoke the 'shutdown' command?

anyway, check out /etc/inittab. towards the end is this:

Code:

# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/shutdown -r now


you'll want to investigate what 'ctrlaltdel' is mapped to.

and don't forget, if you're running an ssh server you can often log in remotely from another machine on the network even if the keyboard is non-responsive.
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
sstacha
n00b
n00b


Joined: 03 Sep 2003
Posts: 68

PostPosted: Mon Sep 15, 2003 11:14 pm    Post subject: ctl-alt-delete on mac Reply with quote

I have just purchased a newer powerbook so I am new to ppc platform also. I don't know if this is a new feature or not but the ctl-cmd (apple key)-powerbtn does a warmboot for me. you might give it a shot.
Back to top
View user's profile Send private message
dargosch
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2003
Posts: 101

PostPosted: Tue Sep 16, 2003 7:10 am    Post subject: Re: ctl-alt-delete on mac Reply with quote

sstacha wrote:
I have just purchased a newer powerbook so I am new to ppc platform also. I don't know if this is a new feature or not but the ctl-cmd (apple key)-powerbtn does a warmboot for me. you might give it a shot.


Yes, I have found that sequence. However, a warm reboot is not always what you what (even in the world of journaling fs's), since there are services sucha as database managers that I would be more comfortable shutting down the proper way. This is , I believe, done on 'shutdown' but not warm reboot.. :(
Back to top
View user's profile Send private message
dargosch
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2003
Posts: 101

PostPosted: Tue Sep 16, 2003 7:15 am    Post subject: Reply with quote

zojas wrote:
control-alt-backspace will kill the X session by default still, just like on x86. (on my ibook's keyboard, the backspace key is labelled 'delete' but it's really the backspace key).

you can also try control-alt-F1 to get to a console.

maybe fn-control-alt-backspace would invoke the 'shutdown' command?

anyway, check out /etc/inittab. towards the end is this:

Code:

# What to do at the "Three Finger Salute".
ca:12345:ctrlaltdel:/sbin/shutdown -r now


you'll want to investigate what 'ctrlaltdel' is mapped to.

and don't forget, if you're running an ssh server you can often log in remotely from another machine on the network even if the keyboard is non-responsive.



Thank you.. I'll try this. BTW, how do I investigate the mapping of ctrlaltdel? It's not in my console keymap file...
Back to top
View user's profile Send private message
zojas
Veteran
Veteran


Joined: 22 Apr 2002
Posts: 1138
Location: Phoenix, AZ

PostPosted: Tue Sep 16, 2003 12:52 pm    Post subject: Reply with quote

I found this in the man page for inittab:

Code:

ctrlaltdel
              The  process will be executed when init receives the SIGINT sig-
              nal.  This means that someone on the system console has  pressed
              the CTRL-ALT-DEL key combination. Typically one wants to execute
              some sort of shutdown either to get into single-user level or to
              reboot the machine.



so it's built into init itself. time to look at the source code? /sbin/init is part of baselayout (according to qpkg -f) so you might try extracting baselayout:

Code:

5:47am0ocotillo#qpkg -I -v baselayout
sys-apps/baselayout-1.8.6.8-r1 *
5:47am0ocotillo#cd /usr/portage/sys-apps/baselayout
5:47am0ocotillo#ebuild ./baselayout-1.8.6.8-r1.ebuild  fetch unpack
>>> md5 src_uri ;-) sysvinit-2.84.tar.gz
>>> md5 src_uri ;-) sysvinit-2.84.tar.gz
>>> Unpacking source...
>>> Unpacking sysvinit-2.84.tar.gz to /var/tmp/portage/baselayout-1.8.6.8-r1/work
>>> Unpacking rc-scripts-1.4.3.8p1.tar.bz2
 * Checking if we need to tweak CONFIG_PROTECT_MASK
>>> Source unpacked.
5:48am0ocotillo#cd /var/tmp/portage/baselayout-1.8.6.8-r1/work/
5:48am0ocotillo#ls
rc-scripts-1.4.3.8p1/  sysvinit-2.84/
5:48am0ocotillo#cd sysvinit-2.84
5:48am0ocotillo#ls
COPYRIGHT  README  contrib/  doc/  man/  obsolete/  src/
5:48am0ocotillo#ls src
Makefile       halt.c    init.h              last.c     reboot.h    sulogin.c
Makefile.orig  hddown.c  initreq.h           mesg.c     runlevel.c  utmp.c
bootlogd.c     ifdown.c  initscript.sample*  oldutmp.h  set.h       utmpdump.c
dowall.c       init.c    killall5.c          paths.h    shutdown.c  wall.c
5:48am0ocotillo#cd src
5:48am0ocotillo#grep ctrlaltdel *.h *.c
init.c:  { "ctrlaltdel",  CTRLALTDEL    },
init.c: /* Tell ctrlaltdel entry to start up */
5:48am0ocotillo#grep CTRLALTDEL *.h *.c
init.h:#define CTRLALTDEL               9
init.c:             (i) == CTRLALTDEL)
init.c:  { "ctrlaltdel",  CTRLALTDEL    },
init.c:         case CTRLALTDEL:
init.c:         if (ch->action == CTRLALTDEL)
5:48am0ocotillo#


that was on my p3, you might want to try it on your system. maybe the 9 is a keycode?
_________________
http://www.desertsol.com/~kevin/ppc
Back to top
View user's profile Send private message
min.xu
n00b
n00b


Joined: 11 Jun 2022
Posts: 2

PostPosted: Sat Jun 11, 2022 6:42 pm    Post subject: Reply with quote

I just plugged in USB keyboard and ctrl-alt-del worked for me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum