Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

udisks !hal automounting

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
18 posts • Page 1 of 1
Author
Message
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

udisks !hal automounting

  • Quote

Post by darkphader » Thu Jun 10, 2010 11:26 pm

Finally can automount (and eject) with gnome-2.30 without HAL, using udisks but had to apply this patch: http://realcomputerguy.com/gentoo/ to org.freedesktop.udisks.policy which IMO shouldn't be needed as the "allow_active" being set to yes should be sufficient. It appears that udisks does not know who the active users is. The patch simply changes no to yes for "allow_any" in the mount and eject sections.

How to pass the active user to udisks, so that the patch is unnecessary?

Thanks,

Chris
WYSIWYG - What You See Is What You Grep
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Fri Jun 11, 2010 2:43 am

Not that I'm sure, but does udisks handle that via consolekit ?
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Fri Jun 11, 2010 2:48 am

VoidMage wrote:Not that I'm sure, but does udisks handle that via consolekit ?
Really don't know, although I do have consolekit running.
WYSIWYG - What You See Is What You Grep
Top
M
Guru
Guru
Posts: 432
Joined: Tue Dec 12, 2006 11:59 am

  • Quote

Post by M » Fri Jun 11, 2010 9:54 am

I think your session must be started with ck-launch-session, like for example
exec ck-launch-session openbox-session
or gnome, whatever... Try adding that to your session in /etc/X11/Sessions

I read somewhere about some command that you can use to check if your user/session have access to consolekit but I can't remember where and which command it is...
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Fri Jun 11, 2010 1:24 pm

I use 'startx' from the console to bring up gnome.
But my session is listed as active:

Code: Select all

$ ck-list-sessions 
Session1:
	unix-user = '1000'
	realname = 'Chris Smith'
	seat = 'Seat1'
	session-type = ''
	active = TRUE
	x11-display = ':0'
	x11-display-device = '/dev/tty7'
	display-device = '/dev/tty1'
	remote-host-name = ''
	is-local = TRUE
	on-since = '2010-06-11T02:33:41.471810Z'
	login-session-id = ''
	idle-since-hint = '2010-06-11T03:14:21.300622Z'
WYSIWYG - What You See Is What You Grep
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Fri Jun 11, 2010 3:07 pm

M wrote:I think your session must be started with ck-launch-session, like for example
exec ck-launch-session openbox-session
or gnome, whatever... Try adding that to your session in /etc/X11/Sessions
OK, that helped a bit. Adding it to /etc/X11/Session/Gnome didn't help but I may have done that wrong as I simply replaced

Code: Select all

exec $command
with

Code: Select all

exec ck-launch-session $command
It didn't work at first by using .xinitrc with

Code: Select all

exec ck-launch-session "gnome-session"
but that turned to be a need to have the console-kit-daemon running before entering startx - even though the daemon will get started upon starting X it doesn't get started soon enough to work properly. So simply adding it to the default run level simplifies that issue.

Two issues remain:
There must be a way to properly use it with /etc/X11/Sessions/Gnome (and other sessions).
and
If I plug in a flashkey with multiple partitions then "Safely Remove Drive" chokes with:

Code: Select all

Unable to stop drive

Error detaching: helper exited with exit code 1: Detaching device /dev/sde
USB device: /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-6)
SYNCHRONIZE CACHE: FAILED: No such file or directory
(Continuing despite SYNCHRONIZE CACHE failure.)
STOP UNIT: OK
Unbinding USB interface driver: OK
Suspending USB device: FAILED: Cannot open /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-6/power/level for writing: No such file or directory
I am guessing that it is due to having more than one partition, I may repartition the flash drive later to test the standard circumstance.

Thanks,

Chris
WYSIWYG - What You See Is What You Grep
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Fri Jun 11, 2010 4:08 pm

Haha - when I start Gnome with an ~/.xinitrc containing

Code: Select all

exec ck-launch-session "gnome-session"
automounting works but my Applications menu is blank :)
WYSIWYG - What You See Is What You Grep
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Fri Jun 11, 2010 4:14 pm

So back to ground zero - no automounting or no applications menu, but the crazy thing is that Gnome appears to be properly launched

Code: Select all

ps ax | grep Gnome
 3143 tty1     S      0:00 /usr/bin/ck-launch-session /etc/X11/Sessions/Gnome
without using a custom ~/.xinitrc.
WYSIWYG - What You See Is What You Grep
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Fri Jun 11, 2010 4:30 pm

Just adding that automounting works when I use gdm. Why doesn't it work without it?
WYSIWYG - What You See Is What You Grep
Top
red-wolf76
l33t
l33t
User avatar
Posts: 714
Joined: Wed Apr 13, 2005 6:20 pm
Location: Rhein-Main Area

  • Quote

Post by red-wolf76 » Fri Jul 02, 2010 5:37 pm

Maybe gdm initializes ck correctly? It is the preferred way (in the GNOME mindset) to run GNOME after all...
0mFg, G3nt00 r0X0r$ T3h B1g!1111 ;)

Use sane CFLAGS! If for no other reason, do it for the lulz!
Top
gglaboussole
l33t
l33t
User avatar
Posts: 641
Joined: Tue May 17, 2005 5:40 pm
Location: Monbalen (47),France

  • Quote

Post by gglaboussole » Thu Jul 15, 2010 5:53 pm

hi darkphader,
I' have exacty the same problem but I still use hal (My player is banshee and it depends on hal)...

Code: Select all

Error detaching: helper exited with exit code 1: Detaching device /dev/sdc
USB device: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1)
SYNCHRONIZE CACHE: OK
STOP UNIT: OK
Unbinding USB interface driver: OK
Suspending USB device: FAILED: Cannot open /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/power/level for writing: No such file or directory
So is it a bug ?
On m'a dit que la terre tourne, alors j'attends que ma maison passe par ici...
Top
netfab
Advocate
Advocate
Posts: 2066
Joined: Thu Mar 03, 2005 1:27 pm
Location: 127.0.0.1

  • Quote

Post by netfab » Tue Aug 03, 2010 8:30 pm

gglaboussole wrote:

Code: Select all

Error detaching: helper exited with exit code 1: Detaching device /dev/sdc
USB device: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1)
SYNCHRONIZE CACHE: OK
STOP UNIT: OK
Unbinding USB interface driver: OK
Suspending USB device: FAILED: Cannot open /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/power/level for writing: No such file or directory
So is it a bug ?
Bump. I hit this bug today. You must probably rebuild your kernel with CONFIG_PM_RUNTIME and CONFIG_USB_SUSPEND.
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Tue Aug 03, 2010 9:54 pm

netfab wrote:Bump. I hit this bug today. You must probably rebuild your kernel with CONFIG_PM_RUNTIME and CONFIG_USB_SUSPEND.
I'll try that.
WYSIWYG - What You See Is What You Grep
Top
gglaboussole
l33t
l33t
User avatar
Posts: 641
Joined: Tue May 17, 2005 5:40 pm
Location: Monbalen (47),France

  • Quote

Post by gglaboussole » Tue Aug 10, 2010 11:57 am

For me that's solved the problem :)
Merci netfab
On m'a dit que la terre tourne, alors j'attends que ma maison passe par ici...
Top
Shocker580
Tux's lil' helper
Tux's lil' helper
Posts: 108
Joined: Sat Nov 19, 2005 11:20 am
Location: Italy

  • Quote

Post by Shocker580 » Tue Feb 08, 2011 10:36 am

netfab wrote:
gglaboussole wrote:

Code: Select all

Error detaching: helper exited with exit code 1: Detaching device /dev/sdc
USB device: /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1)
SYNCHRONIZE CACHE: OK
STOP UNIT: OK
Unbinding USB interface driver: OK
Suspending USB device: FAILED: Cannot open /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/power/level for writing: No such file or directory
So is it a bug ?
Bump. I hit this bug today. You must probably rebuild your kernel with CONFIG_PM_RUNTIME and CONFIG_USB_SUSPEND.
I'have the same problem but in .config(uration) kernel i don't find CONFIG_USB_SUSPEND option for enable. Where is it ?

2.6.37
Top
swimmer
Veteran
Veteran
User avatar
Posts: 1330
Joined: Mon Jul 15, 2002 10:42 am
Location: Netherlands

  • Quote

Post by swimmer » Tue Feb 08, 2011 1:18 pm

As said above you also have to enable CONFIG_PM_RUNTIME - you can find that under "Power management and ACPI options -> Run-time PM core functionality"

After that you'll find "USB runtime power management (autosuspend) and wakeup" under "Device Drivers -> USB Support" ...

HTH
swimmer
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Tue Feb 08, 2011 1:40 pm

darkphader wrote:Haha - when I start Gnome with an ~/.xinitrc containing

Code: Select all

exec ck-launch-session "gnome-session"
automounting works but my Applications menu is blank :)
to fix the app menu problem
try adding

Code: Select all

XDG_CONFIG_HOME="$HOME/.config"
XDG_MENU_PREFIX="gnome-"
export XDG_MENU_PREFIX XDG_CONFIG_HOME
to .xinitrc before the "exec" line
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Tue Feb 08, 2011 2:17 pm

Anon-E-moose wrote:to fix the app menu problem
Actually it finally started working. Must have been fixed in an upgrade.
WYSIWYG - What You See Is What You Grep
Top
Post Reply

18 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic