Slackware :: Suspend - Hibernate At Command Line As Regular User In 13.37 - Use ConsoleKit?

Apr 18, 2011

Using the most recent -current/13.37, I'm curious if there is a New Right Way to suspend as a regular user from the command line, now that we've got PolicyKit/ConsoleKit running the show. I've seen some things (e.g., on the Archlinux wiki) that seem to come close, but require UPower. For some reason I can't wrap my head around the PolicyKit documentation well enough to figure this out.

My old solution was to add a line to /etc/sudoers giving anyone in the power group access to pm-suspend, pm-hibernate, and shutdown, and this is probably what I'll end up doing with 13.37.

View 8 Replies


ADVERTISEMENT

General :: How To Hibernate/suspend Using The Command Line ?

May 18, 2011

Put 'nix box to sleep from command line?

I found that the solution was to do: pmi action hibernate

But when I typed in that, it showed: Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files

View 2 Replies View Related

Fedora :: Suspend From Command Line As User ?

Mar 13, 2011

Is it possible in Fedora to suspend from the command line as a non-root user?

View 9 Replies View Related

Fedora :: F15 Suspend Command Line As User ?

May 25, 2011

I just installed new Fedora (F15) and I could not figure out how to suspend or hibernate from command line as user. The method I used in previous versions does not seem to work:

Code:

What is new method of command line suspending and hibernating as user?

View 6 Replies View Related

Slackware :: ConsoleKit Could Not Be Started. ConsoleKit Returned An Unknown Error Of 127

May 22, 2011

I upgraded to Slackware 13.37 following the instructions in UPGRADE.TXT and now Firefox, Thunderbird, Seamonkey and Google Chrome all fail to run. If I start them from the command line, I get:

Code:

/usr/lib/firefox-4.0.1/firefox-bin: symbol lookup error: /usr/lib/libgio-2.0.so.0: undefined symbol: g_cclosure_marshal_VOID__VARIANT
libgio appears to be there:

Code:

root@shannon:/home/tsgilvary# ls -l /usr/lib/libgio-2.0.so.0
lrwxrwxrwx 1 root root 22 May 21 19:51 /usr/lib/libgio-2.0.so.0 -> libgio-2.0.so.0.2800.6

I'm also getting an error message logging into KDE that says "ConsoleKit could not be started. ConsoleKit returned an unknown error of 127" which may or may not be related.I have tried uninstalling and re-installing Firefox through slackpkg. I have also tried reinstalling the glib2 package, also through slackpkg. I ran slackpkg clean-system and removed anything I didn't install myself (lmms and openoffice remain). No joy.

View 11 Replies View Related

Ubuntu :: Suspend Or Hibernate / Computer Refuses To Go Into Hibernate Or Suspend?

Mar 16, 2010

Just got Ubuntu 9.10 and I'm liking it a lot, but my computer refuses to go into hibernate or suspend. I have a Dell M1530 but I don't really think it's a dell hardware issue because it's not just when I close the screen, it's also when I click suspend or hibernate from the menu.

View 2 Replies View Related

Slackware :: Can't Suspend - Hibernate / Resolve This?

Jun 23, 2010

I'm using the version 13 of Slackware. I can't suspend or hibernate my OS. I need something named HAL.

Searched a bit on the net but couldn't really figure something out.

View 5 Replies View Related

Debian :: Command To Suspend / Hibernate Functions In Console Mode?

Dec 6, 2010

I've configured my debian lenny to load first the command line, then if i want I load the X server, but doing this to that way I don't have the suspend/hibernate functions from the gnome menu, so, my question is:

what is the command to suspend / hibernate my system at any moment I decide?

View 1 Replies View Related

Slackware :: Creating A Suspend/hibernate Script To Handle USB HDDs?

May 25, 2011

Currently running Slackware 13.37 64-bit on a notebook and finally have suspend/hibernate after realizing that USB devices, especially USB HDDs, need to be disconnected before suspend/hibernate can work. Problem is I have 2 USB HDDs that are connected to my notebook whenever the notebook is stationary for the extra storage so I'd like to create a script that would get invoked that would stop the suspend/hibernate process if certain partitions are mounted. I know what I would like to accomplish, but I have basic scripting knowledge

1. script would basically store a user specified string containing devices that are non-USB, ie: $NONUSB="/dev/sda /dev/sdb"

2. possibly use /etc/mtab to get a list of what is currently mounted and then remove lines containing whatever is specified in $NONUSB and store those values in $USB

3. run a for loop that executes 'umount' on each token in $USB

3a. stop suspend/hibernate process if 'umount' fails at any point

3b. if 'umount' passes then suspend/hibernate

View 1 Replies View Related

General :: Delete Files On The Command Line With Regular Expressions?

May 6, 2010

Lets say I have 20 files named FOOXX, where XX is the number of the file, eg 01, 02 etc. At the moment, if I want to delete all files lower than the number 10, this is easy and I just use a wildcard, eg rm FOO0* However, if I want to delete specific files ina range, eg 13-15, this becomes more difficult. rm FPP[13-15] does not work, and asks me if I wish to delete all files. Likewse rm FOO1[3-5] wishes to delete all files that begin with FOO1 So, what is the best way to delete ranges of files like this? I have tried with both bash and zsh, and I don't think they differ so much for such a basic task?

View 2 Replies View Related

Slackware :: Can't Start Tint2 As Regular User?

Aug 12, 2010

If I start tint2 as root it works, if I try as spoovy, it segfaults.

Code:
bash-4.1$ tint2
real transparency off.... depth: 24
xRandr: Found crtc's: 2
xRandr: Linking output LVDS with crtc 1

[Code]...

View 2 Replies View Related

Software :: Program To Hibernate The Computer For A Set Time (from Command Line)?

May 9, 2011

Is there a program I can install and run from the Command Line that will hibernate the computer (pausing all running programs (like my Minecraft server)), cutting power usage TO A BARE MINIMUM, and the un-hibernate after a set time? The laptop this will be used on is SliTaz linux with the GUI disabled (unless i run startx)

View 3 Replies View Related

Slackware :: Cli Php Missing Modules As Regular User But Not As Root?

Sep 9, 2010

My cli php is missing modules as regular user but not as root. In particular, mysql is missing... which is how I came across this issue. I'm running Slack 12.2 w/ php 5.2.14, standard Slack packages. As a normal unprivileged user:

-> whoami ; php -v ; php -m |wc -l ; php -m |grep mysql
jerry
PHP 5.2.14 (cli) (built: Aug 25 2010 15:17:31)
Copyright (c) 1997-2010 The PHP Group

[code]....

I've tried reinstalling php and it made no difference. php.ini is not to blame. I've Google'd this to death, no luck.

View 7 Replies View Related

General :: Identify File Types - Command Line Arguments - And Count - How Many Of Them Are Regular Files

Feb 20, 2010

Write a script that will take a list of filenames as arguments and output a count of how many of them are regular files, and how many of them are scripts (if the file is executable, it will be assumed to be a script file)

Counts always come back as 0

View 5 Replies View Related

Slackware :: Automount LUKS Encrypted USB Disk As Regular User

Oct 29, 2009

How can I get a LUKS encrypted partition on an external USB device automounted with r/w access for non-privileged users?

Background:
I just reformatted an external USB device with ext4. The only partition is LUKS encrypted. Now, when I plug the device to my computer, KDE notifies me and asks me to enter the LUKS passphrase. Then it mounts the device. Little snag here: Non-privileged users have read-only access.

My user is a member of group plugdev, but not of group disk, as this was discouraged several times, e. g. by Robby Workman. With non-encrypted disks regular users have read/write access, or can change the filemodes accordingly, as far as I recall (currently I have no more non-encrypted disks left to verify it...)

View 11 Replies View Related

Slackware :: Permanent Fix For Unable To Use USB Devices In VirtualBox As Regular User?

Oct 20, 2010

Does anyone have a permanent fix for not being able to use USB devices in VirtualBox as a regular user?

View 11 Replies View Related

Slackware :: Slackware Current Installpkg Line 59 Rev Command Not Found

Feb 28, 2011

First time I've done this in awhile Upgrading my Slackware64 -current VM, following the standard routine that has always worked in the past -

Code:

slackpkg clean-system
slackpkg install-new
The clean-system removed 2 packages -
util-linux-ng
eggdbus

Installpkg will no longer work, complaining that the rev command is not found. The problem hit with the removal of util-linux-ng. I cp'd util-linux to ~/. Extracted with tar and executed the doinstall. Fixed.

View 4 Replies View Related

Ubuntu :: Can't Suspend Or Hibernate?

Apr 13, 2010

I recently installed Ubuntu 10.04 Lucid Lynx. When I partitioned my HDD, I ran out of available partitions and so couldn't make a Swap Partition.I pushed on anyway, because I read here that you can create a Swap File instead of a partition that does the same thing. I've made the Swap File and it's activated (I know because during shutdown there's a message that flashes very quickly that says "Deactivating Swap [OK]".

But here's the real problem. My Ubuntu refuses to Suspend or Hibernate. The screen just goes black and the backlight stays on. Since one of the main functions of the swap file is to facilitate Suspend and Hibernate,I upgraded from 9.10 Karmic Koala, which suspended and hibernated normally.

View 9 Replies View Related

Red Hat / Fedora :: How To Add User Through Command Line?

Jan 31, 2011

How to add user through command line..??i used "useradd" and "passwd" and created an account but i can't login to it...

View 12 Replies View Related

Debian :: Get Suspend And Hibernate Working?

Apr 29, 2011

I have already installed gnome-power-manager.

There should be the suspend and hibernate buttons in th System Menu, but there is only two options, Shut down and Log off.Also, in the Power Manager Preferences window, it has no option for suspend and hibernate.

How to add suspend and hibernate options?

View 7 Replies View Related

Debian Multimedia :: Suspend And Hibernate In KDE?

Feb 16, 2011

Is there an "official" way to add suspend and hibernate functionality to the KDE logout/shutdown menu in Squeeze? What packages do I need?

ps. My computer is not a laptop - it's a normal desktop machine

View 1 Replies View Related

Fedora :: How To Disable Hibernate Or Suspend?

Dec 18, 2009

I have a web server running on my laptop(in fact , it's a netbook). But I found it always hibernate automatically in a certain time .(In fact , I don't know what's the differences between hibernate or suspend. So I call this hibernate instead.) I am sure I have disabled the hibernate function in Power-Management from the System menu. But it still hibernates as usual.So could someone tell me how to disable it ( suspend,hibernate whatever )?

View 6 Replies View Related

Ubuntu :: Cannot Suspend (hibernate Or Sleep)

Mar 15, 2010

kubuntu 9.10, KDE 4.4.1, Nvidia driver 195

jeff@jeff-lappy:~$ sudo hibernate hibernate:Warning: Tuxonice binary signature file not found. Some modules failed to unload: nvidia hibernate: Aborting suspend due to errors in ModulesUnloadBlacklist (use --force to override).

I even installed this tuxonice thing but to no avail...

View 2 Replies View Related

Ubuntu :: Hibernate And Suspend- Can't Wake Up

May 4, 2010

I can Suspend or Hibernate my Gateway notebook but I have no idea how to wake it up.The power button is set to suspend or hibernate....I not sure which it does, but I can't wake the computer up.

View 9 Replies View Related

Ubuntu :: Suspend And Hibernate Not Working?

Oct 15, 2010

My suspend and hibernate buttons are not working. When I try to return from a suspend, I do not get a kernel panic, but nothing loads onto the screen.

View 7 Replies View Related

Ubuntu :: Log Files For Suspend/hibernate?

Jan 12, 2011

which ubuntu log file records when a suspend happened?I was ssh'ing into my ubuntu box periodically yesterday, when I discovered that it was no longer reachable. On getting home last night I discovered that it was still switched on, but I think in suspend mode as moving the mouse brought it back to life. The clock however, still showed 12:15pm, which is roughly when I stopped being able to ssh to it. I'd like to see the logs to confirm this.

View 9 Replies View Related

Ubuntu :: Unable To Suspend Or Hibernate?

Feb 12, 2011

My Ubuntu 10.10 on my laptop Lenovo T400 is not able to suspend or hibernate. Whenever I click Suspend or Hibernate in Startup options of the OS: * the moon LED on the bottom of the lid flashes a few seconds, the screen quickly shows something like "some devices fail to suspend, error 5", * and then the moon LED goes off and the display still has ambient light illumination. I suppose in suspend or hibernation state, the display should have no illumination, just like when the laptop is turned off, right? * If I press any key, the unlock screen dialogue will pop out. I have installed 'acpi-support' and 'hibernate 1.99-1.1'. But I don't know how to use these methods to suspend or hibernate my OS. Are they by commands in terminate, or can they be called by clicking Suspend or Hibernate in Startup options of the OS? For example, I type the hibernation command and it shows something is missing although I have installed "tuxonice-userui" ( I don't know if it will provide Tuxonice binary signature file):

Code:
$ sudo hibernate
hibernate:Warning: Tuxonice binary signature file not found.

[Code]....

View 2 Replies View Related

Ubuntu :: Get To The User Directory From Command Line

Oct 24, 2010

how do you get to the usr directory from command line.

View 5 Replies View Related

Debian :: When Suspend And Hibernate Screen Goes Black?

Feb 26, 2011

I am having some pain with my new Squeeze installation, I am not sure if I am asking to much of it or it is an easy fix.

Firstly my system is laptop which I regularly plug a second monitor into. The video adaptor is an ATI HD4550 mobile.

My problem is that when ever suspend or hibernate my system, and even sometime when I boot up the screen(s) are just blank, although sometime they don't, it always happens if I suspend by closing the lid of my laptop, and only sometime happend with through Gnome is go ->System->Shutdown->Suspend. This is really annoying.

Another issue which I think is connected is that as I said I have a second monitor (most of the time) and when I boot up then it works until I log in, then a message pops up say the configuration can not be applied and it revert to Mirror mode or it does this thing where it places the second screen inside (virtually) the built in Laptop panel, it will not let me fix this through the monitors dialog just displaying the same message. I can fix this by doing

invoke-rc.d gmd3 restart

This gets as far as killing Gnome them it prints an error the to console, at which point Imopen a new terminal by ctrl+alt+f2 and
invoke-rc.d gmd3 stop
invoke-rc.d gmd3 start

then it works fine and even remember that I set the secondary screen to be the primary monitor through xrandr.

I tried install fgrlx drivers instead but it didn't really fix the issue, so I removed them.

View 5 Replies View Related

Debian Installation :: Suspend / Hibernate On Thinkpad T42

Jul 9, 2011

I installed the debian 6 on the tninkpad T42, use the Suspend,it can entry the suspend state,I type the key let it come back, it can exit the suspend state, But the screen always display "black",can't come back the X window.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved