Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tips and tricks for ConsoleKit, PolicyKit, and udev helpers
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 14, 15, 16  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
printf
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2010
Posts: 127

PostPosted: Tue Mar 01, 2011 7:48 am    Post subject: Reply with quote

aZZe wrote:
???

I don't see any similar problems in this thread

prior to the modification described in that thread, some buttons were missing (hybernate, suspend) from the log out dialog window, and i could not shut down from there
after putting this in slim.conf: login_cmd exec ck-launch-session /bin/bash -login /usr/share/slim/Xsession %session , everything started to work
Back to top
View user's profile Send private message
aZZe
l33t
l33t


Joined: 20 Feb 2003
Posts: 965
Location: Dinslaken, Germany

PostPosted: Tue Mar 01, 2011 8:58 am    Post subject: Reply with quote

printf wrote:
aZZe wrote:
???

I don't see any similar problems in this thread

prior to the modification described in that thread, some buttons were missing (hybernate, suspend) from the log out dialog window, and i could not shut down from there
after putting this in slim.conf: login_cmd exec ck-launch-session /bin/bash -login /usr/share/slim/Xsession %session , everything started to work


Ahh now I know what you mean. Thanks! That fixed it!


Anon-E-moose wrote:


I didn't say put it in the system directory,
if you put it there I'm not sure it gets updated without env-update/etc-update or a system bounce,
it's always preferable to put it in ~/.bash_profile and re-login

what does "ls .config/menus/ /etc/xdg/menus/" return
what does "cat ~/.bash_profile" return
what does "grep XDG /etc/env.d/*" return


I pasted ~/.bash_profile. Sorry forgot ~.

ls /etc/xdg/menus:

Code:

applications-merged  gnome-applications.menu  gnome-screensavers.menu
ggz.menu             gnomecc.menu             settings.menu


.config/menus doesn't exist.

cat ~/.bash_profile:

Code:

# /etc/skel/.bash_profile

# This file is sourced by bash for login shells.  The following line
# runs your .bashrc and is recommended by the bash info pages.
[[ -f ~/.bashrc ]] && . ~/.bashrc
export XDG_MENU_PREFIX="gnome-"


grep XDG /etc/env.d/*:

Code:

/etc/env.d/30xdg-data-local:XDG_DATA_DIRS="/usr/local/share"
/etc/env.d/30xdg-data-local:COLON_SEPARATED="XDG_DATA_DIRS XDG_CONFIG_DIRS"
/etc/env.d/90xdg-data-base:XDG_DATA_DIRS="/usr/share"
/etc/env.d/90xdg-data-base:XDG_CONFIG_DIRS="/etc/xdg"
/etc/env.d/99xdg-gdm:XDG_DATA_DIRS="/usr/share/gdm"

_________________
ASUS 4A785TD-V EVO with AMD Phenom(tm) II X4 965
4GB RAM DDR3-1333
ATI Radeon HD4870
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6138
Location: Dallas area

PostPosted: Tue Mar 01, 2011 12:16 pm    Post subject: Reply with quote

do you have a ~/.xinitrc file and if so what does "cat ~/.xinitrc" return?

if the gnome menu doesn't show up then it's possible the XDG_MENU_PREFIX variable isn't being passed through,
though I don't understand why.

when the gnome menu doesn't show up, can you still open an xterm (of some type)
and if so what does "set | grep XDG" return
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
aZZe
l33t
l33t


Joined: 20 Feb 2003
Posts: 965
Location: Dinslaken, Germany

PostPosted: Wed Mar 02, 2011 12:44 pm    Post subject: Reply with quote

I don't have a ~/.xinitrc file.

set | grep XDG:

Code:

XDG_CONFIG_DIRS=/etc/xdg
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm
XDG_MENU_PREFIX=gnome-
XDG_SESSION_COOKIE=7989d87a1db132dd16453c174b8a3951-1299069547.234680-1444257114


Well the solution from printf to add login_cmd exec ck-launch-session /bin/bash -login /usr/share/slim/Xsession %session to /etc/slim.comf fixed it somehow.

The last question I have is how do I change the language to German again? /etc/env.d/02locale doesn't work somehow.
_________________
ASUS 4A785TD-V EVO with AMD Phenom(tm) II X4 965
4GB RAM DDR3-1333
ATI Radeon HD4870
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Fri Mar 04, 2011 10:40 am    Post subject: Reply with quote

kernel config.

I don't have the following option in kernel


Code:
CONFIG_USB_SUSPEND=


CONFIG_AUDITSYSCALL=



using kernel

amd64 2.6.36-gentoo-r5

any ideas?

cheers
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6138
Location: Dallas area

PostPosted: Fri Mar 04, 2011 11:43 am    Post subject: Reply with quote

Code:
config USB_SUSPEND
    bool "USB runtime power management (autosuspend) and wakeup"
    depends on USB && PM_RUNTIME


Code:
config AUDITSYSCALL
    bool "Enable system-call auditing support"
    depends on AUDIT && (X86 || PPC || S390 || IA64 || UML || SPARC64 || SUPERH)

_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
xsilentmurmurx
Apprentice
Apprentice


Joined: 23 Oct 2009
Posts: 233

PostPosted: Sun Mar 06, 2011 8:42 pm    Post subject: Reply with quote

do these rules work with KDE 4.4.5 or only KDE4.6?
Back to top
View user's profile Send private message
xsilentmurmurx
Apprentice
Apprentice


Joined: 23 Oct 2009
Posts: 233

PostPosted: Sun Mar 06, 2011 9:01 pm    Post subject: Reply with quote

ok I am trying to get this to work in KDE4.4.5

Basically

I followed the instructions and everything. The kernel is set properly, hal is masked, all of the required packages have been emerged. Even ck-list-sessions looks good, but for some strange reason I still cannot get my USB drives to mount automatically nor any CDs that I insert into the CD ROM drive. I had to emerge polkit-kde-agent-9999 because it would not allow me to emerge polkit-kde-agent with out unmasking the 9999 version.


This is what my /etc/slim.conf looks like:

Code:
# cat /etc/slim.conf
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments   -nolisten tcp -br -deferglyphs 16

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
# login_cmd           exec /bin/bash -login ~/.xinitrc %session
login_cmd           exec ck-launch-session dbus-launch startkde /bin/bash -login /usr/share/slim/Xsession %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd      some command
# sessionstop_cmd       some command
sessionstart_cmd        /usr/bin/sessreg -a -l :0.0 %user
sessionstop_cmd     /usr/bin/sessreg -d -l :0.0 %user

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
daemon  yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
#sessions            xfce4,icewm,wmaker,blackbox
# Alternatively, read available sessions from a directory:
sessiondir           /etc/X11/Sessions

# Executed when pressing F11 (requires media-gfx/imagemagick for import)
# Alternative is media-gfx/scrot. See Gentoo bug 252241 for more info.
screenshot_cmd      import -window root /slim.png
#screenshot_cmd      scrot /root/slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session:

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user        simone

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
#auto_login          no


# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme       flat

# Lock file, /etc/init.d/xdm expects slim.pid
lockfile            /var/run/slim.pid

# Log file
logfile             /var/log/slim.log



and my /etc/pam.d/system-login looks like this:

Code:
 # cat /etc/pam.d/system-login
auth            required        pam_tally2.so onerr=succeed
auth            required        pam_shells.so
auth            required        pam_nologin.so
auth            include         system-auth
 
account         required        pam_access.so
account         required        pam_nologin.so
account         include         system-auth
account         required        pam_tally2.so onerr=succeed
 
password        include         system-auth
 
session         optional        pam_loginuid.so
session         required        pam_env.so
session         optional        pam_lastlog.so
session         include         system-auth
session         optional        pam_ck_connector.so
session         optional        pam_motd.so motd=/etc/motd
session         optional        pam_mail.so
 


In order to emerge polkit-kde-agent-9999 i had to unmerge polkit-kde from my system because they were blocking each other.

I have no idea what I am missing here, but I would like for this to work :(
Back to top
View user's profile Send private message
Odysseus
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 250
Location: Miami, FL. I miss San Francisco!!!

PostPosted: Wed Mar 09, 2011 3:47 pm    Post subject: Reply with quote

xsilentmurmurx wrote:
do these rules work with KDE 4.4.5 or only KDE4.6?


You can try to removing Hal with previous versions of KDE but you'll find disappointing results and expect things to break like power management and automounting. In KDE versions prior to 4.6 Solid relies heavily on Hal to function properly. Removing it (Hal) will disable whatever capabilities it enables.

If you wish to finally remove Hal from your system unmask KDE-4.6.1. This is the only way to go at the moment.

I hope this helps.

Ciao
Back to top
View user's profile Send private message
tbart
Apprentice
Apprentice


Joined: 31 Oct 2004
Posts: 151

PostPosted: Wed Mar 09, 2011 7:27 pm    Post subject: Reply with quote

Thanks, ssuominen, works like a charm under e17 here!
The only thing that does not work (and did before) is mounting of eSATA disks.
I normally get an icon on my desktop when attaching new devices (and with USB it works as expected, without HAL).

udisks --monitor picks up the esata drive.
I am somewhat at a loss as to where look further...


Think I found it out just now:
I had a special hal policy file that took care of unhiding eSATA drives as they have not been "removable" under hal.
Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->

<!--
  /etc/hal/fdi/policy/99-storage-policy-fixed-drives.fdi
  , overrides
  /usr/share/hal/fdi/policy/10osvendor/99-storage-policy-fixed-drives.fdi
 -->

<!--
  Gentoo's policy is to hide all the fixed drives and partitions and
  only show the removable drives when plugged. This can be reverted
  by commenting out the section below. Also, partitions that are not
  supposed to show up, like "RECOVERY" etc, can be added specifically.
  See the example below.
-->

<!-- Section for *un*hiding all fixed drives -->
<deviceinfo version="0.2">
<device>
  <match key="@block.storage_device:storage.hotpluggable" bool="false">
    <match key="@block.storage_device:storage.removable" bool="false">
      <merge key="volume.ignore" type="bool">false</merge>
    </match>
  </match>
</device>
<!-- </deviceinfo> -->

<!-- Section for hiding only a specific drive, say /dev/sda6.
     Uncomment this and change your device string. See the
     output of 'hal-device' to figure out details. -->

<device>
<match key="block.device" string="/dev/sda">
<merge key="info.ignore" type="bool">true</merge>
<merge key="volume.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>


The same thing happens with udisks as well:

Code:
tbart@blackknight /mnt/netdisk $ udisks --show-info /dev/sdd1
Showing information for /org/freedesktop/UDisks/devices/sdd1
  native-path:                 /sys/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/host8/target8:0:0/8:0:0:0/block/sdd/sdd1
  device:                      8:49
  device-file:                 /dev/sdd1
    presentation:              /dev/sdd1
    by-id:                     /dev/disk/by-id/ata-Maxtor_7L300S0_L604TD3H-part1
    by-id:                     /dev/disk/by-id/scsi-SATA_Maxtor_7L300S0_L604TD3H-part1
    by-id:                     /dev/disk/by-uuid/C86829BC6829AA60
    by-path:                   /dev/disk/by-path/pci-0000:05:00.0-scsi-0:0:0:0-part1
  detected at:                 Wed 09 Mar 2011 08:03:18 PM CET
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Wed 09 Mar 2011 08:03:18 PM CET)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:             
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  size:                        214753803264
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ntfs
  version:                     8
  uuid:                        C86829BC6829AA60
  label:                       SysBakB
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdd
    scheme:                    mbr
    number:                    1
    type:                      0x07
    flags:                   
    offset:                    32256
    alignment offset:          0
    size:                      214753803264
    label:                     
    uuid:                     


note "system internal" is set to 1.
There does not seem to be a way to differentiate eSATA drives from internal ones on AHCI as I read.

How can I go about fixing this in udisks very much like I did in hal? That, is, tell my system to NOT ignore system internal drives?

tia!

PS: ubuntu has the same problem: https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/153768
they seem to go the (correct) way of getting the eSATA information from the hardware.
Nevertheless there are (non-standard-conformant, granted) setups where an internal SATA port is used as an eSATA port with an adapter. There has to be a solution like I had it in hal. I just don't know how/where to write this policy... is it polkit i need to look at?
Back to top
View user's profile Send private message
zolfo
n00b
n00b


Joined: 30 Nov 2009
Posts: 36

PostPosted: Thu Mar 10, 2011 11:17 am    Post subject: Reply with quote

Hi,
great guide! but just a question, in the first line you insert policikit directly in make.conf

Code:

USE="-hal consolekit dbus pam policykit udev"


but then you say

Code:

Removing legacy cruft so they don't interfere with our setup:

Codice:

# /etc/init.d/hald stop
# rc-update del hald
# emerge -C hal policykit devicekit devicekit-disks devicekit-power


So, I don't understand why I have to insert it in make.conf when I have to remove it then?
Thanx!

Zolfo
Back to top
View user's profile Send private message
gr0x0rd
Guru
Guru


Joined: 12 Aug 2006
Posts: 311

PostPosted: Fri Mar 11, 2011 2:39 am    Post subject: Reply with quote

@zolfo: USE flags and packages aren't the same thing... Think of it this way. Some of the packages need to be emerged with the policykit USE flag so that the policykit package itself isn't needed. ;)

@slack---line: Thanks for the kernel tips! Cheers!!!

@ssuominen: THANK YOU for your efforts and instructions. HAL->udev? Check. Automounting? Check. Suspend/Hibernate? Check. Everything I needed was on the first page of this thread. :)

Keep your sticks on the ice...
_________________
~g
emerge -FML...
Back to top
View user's profile Send private message
zolfo
n00b
n00b


Joined: 30 Nov 2009
Posts: 36

PostPosted: Fri Mar 11, 2011 7:16 pm    Post subject: Reply with quote

Ok guys,
first of all I'm following this guide because after updating my system now I have kde 4.6 and
I wasn't able to see usb devices and cds/dvds anymore, they didn't show up in device notifier even,
and I thought that hal has had its time.
I think I did everything correct, now I'm getting this from ck-list-sessions:

Code:
Session3:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty1'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-03-11T17:54:16.248014Z'
        login-session-id = '2'
        idle-since-hint = '2011-03-11T17:56:42.010144Z'
Session6:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-03-11T18:01:26.599591Z'
        login-session-id = '1'


wich seems to be ok, Session6 is my kdm/kde session; udisks shows all my drives correctly,
I can mount them manually (like /media/disk, so no label recognized), but still not showing up in
the device notifier nor in dolphin or in system settings -> hardware -> removable devices.
I followed examples in these links:

http://forums.funtoo.org/viewtopic.php?id=262
https://bbs.archlinux.org/viewtopic.php?id=112465

but no luck. Any suggestion?

Thanks

Zolfo


Code:
emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r1, 2.6.37-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-gentoo-2.0.1
Timestamp of tree: Fri, 11 Mar 2011 18:00:01 +0000
ccache version 3.1.4 [disabled]
app-shells/bash:     4.2_p7
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.7.9-r1, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://ftp.heanet.ie/pub/gentoo/ http://gentoo.mirror.solnet.ch"
LANG="it_IT@euro"
LC_ALL="it_IT"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/pro-audio /usr/local/portage/layman/games /usr/local/portage/layman/multimedia /usr/local/portage/layman/vmware /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 arts avahi bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dga dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif glx gpm iconv ipv6 java jpeg kde lcms ldap libnotify mac mad man mikmod mmx mmxext mng modplug modules mp3 mp4 mpeg mudflap multilib musepack ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3 qt3support qt4 readline sdl session spell sse sse2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis wavpack wma x264 xcb xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sat Mar 12, 2011 7:48 pm    Post subject: Reply with quote

@zolfo: does udisks mount those drives when run from a terminal ?
Back to top
View user's profile Send private message
zolfo
n00b
n00b


Joined: 30 Nov 2009
Posts: 36

PostPosted: Sun Mar 13, 2011 11:00 am    Post subject: Reply with quote

@VidMage

Hi,
as I said

Quote:
I can mount them manually (like /media/disk, so no label recognized), but still not showing up in
the device notifier nor in dolphin or in system settings -> hardware -> removable devices.


when I insert a usb pen udisks --monitor-detail says:

Code:


added:     /org/freedesktop/UDisks/devices/sdc
Showing information for /org/freedesktop/UDisks/devices/sdc
  native-path:                 /sys/devices/pci0000:00/0000:00:10.4/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdc
  device:                      8:32
  device-file:                 /dev/sdc
    presentation:              /dev/sdc
    by-id:                     /dev/disk/by-id/usb-USB_Flash_Disk_AA04013000007657-0:0
    by-path:                   /dev/disk/by-path/pci-0000:00:10.4-usb-0:2:1.0-scsi-0:0:0:0
  detected at:                 dom 13 mar 2011 11:45:24 CET
  system internal:             0
  removable:                   1
  has media:                   1 (detected at dom 13 mar 2011 11:45:24 CET)
    detects change:            1
    detection by polling:      1
    detection inhibitable:     1
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:             
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  size:                        4009754624
  block size:                  512
  job underway:                no
  usage:                       
  type:                       
  version:                     
  uuid:                       
  label:                       
  partition table:
    scheme:                    mbr
    count:                     1
  drive:
    vendor:                    USB
    model:                     Flash Disk
    revision:                  1100
    serial:                    AA04013000007657
    WWN:                       
    detachable:                1
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     
      compat:                 
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 not available

added:     /org/freedesktop/UDisks/devices/sdc1
Showing information for /org/freedesktop/UDisks/devices/sdc1
  native-path:                 /sys/devices/pci0000:00/0000:00:10.4/usb1/1-2/1-2:1.0/host7/target7:0:0/7:0:0:0/block/sdc/sdc1
  device:                      8:33
  device-file:                 /dev/sdc1
    presentation:              /dev/sdc1
    by-id:                     /dev/disk/by-id/usb-USB_Flash_Disk_AA04013000007657-0:0-part1
    by-path:                   /dev/disk/by-path/pci-0000:00:10.4-usb-0:2:1.0-scsi-0:0:0:0-part1
  detected at:                 dom 13 mar 2011 11:45:24 CET
  system internal:             0
  removable:                   0
  has media:                   1 (detected at dom 13 mar 2011 11:45:24 CET)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:             
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  size:                        4007076864
  block size:                  512
  job underway:                no
  usage:                       
  type:                       
  version:                     
  uuid:                       
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdc
    scheme:                    mbr
    number:                    1
    type:                      0x0b
    flags:                   
    offset:                    31744
    alignment offset:          0
    size:                      4007076864
    label:                     
    uuid:                     


I think there is a problem with Solid, it can see the drive correctly via "solid-hardware list" command

Code:
udi = '/org/freedesktop/UDisks/devices/sdc1'
udi = '/org/freedesktop/UDisks/devices/sdc'


but if i try to mount it via solid-harware I get this error (translated):

Code:
 solid-hardware mount /org/freedesktop/UDisks/devices/sdc1
Error: /org/freedesktop/UDisks/devices/sdc1 there is no StorageAccess interface.


and with the command "solid-hardware query 'IS StorageAccess'" I get a blank output....
maybe I have to dig in to this! And I don't have any clue where to start :)
I will google a lot.

Thanks

Zolfo
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sun Mar 13, 2011 5:32 pm    Post subject: Re: Tips, and tricks for ConsoleKit/PolicyKit/udev, without Reply with quote

ssuominen wrote:
Here is a small checklist to get a working ConsoleKit and PolicyKit setup for your console and X11.
...[snip]


Will those instructions work (disabling "hald" ) in kde-3.5?
Back to top
View user's profile Send private message
bornmw
n00b
n00b


Joined: 13 Apr 2009
Posts: 46

PostPosted: Sun Mar 13, 2011 7:47 pm    Post subject: Reply with quote

Hi guys,

udisks daemon sees my USB stick:

Code:
$ udisks --monitor
Monitoring activity from the disks daemon. Press Ctrl+C to cancel.
added:     /org/freedesktop/UDisks/devices/sdb
added:     /org/freedesktop/UDisks/devices/sdb1
changed:     /org/freedesktop/UDisks/devices/sdb


Without going into more detail is it possible to tell why Thunar doesn't? Is Thunar supposed to read directly from UDisks, or how is it supposed to get notified about new volumes in the system? (it is able to see windows hda partitions)

thnx
Back to top
View user's profile Send private message
zolfo
n00b
n00b


Joined: 30 Nov 2009
Posts: 36

PostPosted: Mon Mar 14, 2011 5:13 pm    Post subject: Reply with quote

So these are my 2 cents :)
After searching around for a solution to my problem I found this workaround in the Archlinux udev wiki https://wiki.archlinux.org/index.php/Udev
adding this (personally modified for my purpose) udev rule I am able to make KDE "feel" the usb drives stuff:

File: /etc/udev/rules.d/11-media-by-label-auto-mount.rules

Code:

KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"

# Import FS infos
IMPORT{program}="/sbin/blkid -o udev -p %N"

# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="disk-%k"

# Global mount options
ACTION=="add", ENV{mount_options}="relatime"
# Filesystem-specific mount options
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"

# Mount the device
#ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"

# Clean up after removal
#ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"

# Exit
LABEL="media_by_label_auto_mount_end"


I commented the mount/umount part of the rules because KDE knows how to do it from here.
But as I said it's a workaround not a solution, because I still can't mount dvds/cds but from command line.
I think there is some missing communication between udev/udisks and (maybe) solid or some other stuff that
I'm not aware of, if anybody is willing to help me it would be really appreciated!
Or just tell me if I have to post this somewhere else than this forum.

Thank you

Zolfo
Back to top
View user's profile Send private message
tbart
Apprentice
Apprentice


Joined: 31 Oct 2004
Posts: 151

PostPosted: Wed Mar 16, 2011 2:42 pm    Post subject: Reply with quote

Reply to self:

I managed to modify udisks so it works with eSATA drives
https://bugs.gentoo.org/show_bug.cgi?id=359155

How do you specify mount options in e17 (or do you do it in udev?) without using the archlinux workaround mentioned above?
My NTFS drives do not get mounted with the correct iocharset and with in-kernel ntfs instead of ntfs-3g...
Back to top
View user's profile Send private message
m0p
Apprentice
Apprentice


Joined: 20 Jun 2005
Posts: 205
Location: en_GB

PostPosted: Wed Mar 16, 2011 3:19 pm    Post subject: Reply with quote

bornmw wrote:
Hi guys,

udisks daemon sees my USB stick:

Code:
$ udisks --monitor
Monitoring activity from the disks daemon. Press Ctrl+C to cancel.
added:     /org/freedesktop/UDisks/devices/sdb
added:     /org/freedesktop/UDisks/devices/sdb1
changed:     /org/freedesktop/UDisks/devices/sdb


Without going into more detail is it possible to tell why Thunar doesn't? Is Thunar supposed to read directly from UDisks, or how is it supposed to get notified about new volumes in the system? (it is able to see windows hda partitions)

thnx

I think Thunar needs gvfs to interact with devices, it doesn't use udisks or udev directly.


Last edited by m0p on Fri Mar 18, 2011 3:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
zolfo
n00b
n00b


Joined: 30 Nov 2009
Posts: 36

PostPosted: Fri Mar 18, 2011 9:44 am    Post subject: Reply with quote

ssuominen any help? Sorry if I bother you but I'm really stuck here... thanks!

Zolfo
Back to top
View user's profile Send private message
ferreirafm
Guru
Guru


Joined: 28 Jul 2005
Posts: 487
Location: Sao Paulo, Brazil

PostPosted: Fri Mar 18, 2011 6:12 pm    Post subject: Reply with quote

Hi there,
I've recently migrated to the xorg-server-1.9.4 setting the udev USE flag as required. Just one question, do I have to unset the hal USE flag globally?
There are some few packages which depend on hal.
Code:
mephisto ~ # equery d hal
[ Searching for packages depending on hal... ]
app-cdr/k3b-2.0.2-r1 (hal? sys-apps/hal)
app-misc/hal-info-20090716 (>=sys-apps/hal-0.5.10)
kde-base/solid-4.4.5 (hal? sys-apps/hal)
media-gfx/gimp-2.6.11-r1 (hal? sys-apps/hal)
media-libs/libgphoto2-2.4.10 (hal? >=sys-apps/hal-0.5)

Thanks in advance,
ferreirafm


Last edited by ferreirafm on Sun Mar 20, 2011 2:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Fri Mar 18, 2011 7:03 pm    Post subject: Reply with quote

hal-info is just a set of files for hal, solid-4.4.5 still needs hal, but not >=4.6.0,
libgphoto...well that's a good question for upstream, as for k3b, it's a bit tricky
- the moment you switch to >=solid-4.6.0, that hal useflag controlled part most likely won't be working properly anyway,
as for gimp, AFAICT useflag doesn't control anything important (and 1.9 xorg server's hotplugging probably supersedes that part anyway).
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Tue Mar 22, 2011 6:05 pm    Post subject: Reply with quote

zolfo wrote:
ssuominen any help? Sorry if I bother you but I'm really stuck here... thanks!

Zolfo


Sorry but I have to refuse on anything KDE related for now. I don't use it, have it installed, or have time to install and test it.

Reallife, work, priorities.
Back to top
View user's profile Send private message
jserink
Veteran
Veteran


Joined: 30 Jan 2004
Posts: 1008

PostPosted: Wed Mar 23, 2011 1:58 pm    Post subject: BB Bold 9700 as mass storage device Reply with quote

Hi Everyone:

Before when I was running XF\E4.6 I could plug my BB9700 in and if I selected "use as mass storage device' ont he BB front panel, when I entered the PW the BB would show up on Thunar as a USB drive.

Since updating to XFCE 4.8 with the new udisks and policy kit stuff, this no longer works. USB sticks and CDs automount and eject fine, just the BB does not work. Here is was the logs say:

Mar 23 21:50:32 [kernel] usb 1-4: new high speed USB device using ehci_hcd and address 13
Mar 23 21:50:32 [kernel] usb 1-4: New USB device found, idVendor=0fca, idProduct=8004
Mar 23 21:50:32 [kernel] usb 1-4: New USB device strings: Mfr=1, Product=5, SerialNumber=3
Mar 23 21:50:32 [kernel] usb 1-4: Product: RIM Composite Device
Mar 23 21:50:32 [kernel] usb 1-4: Manufacturer: Research In Motion
Mar 23 21:50:32 [kernel] usb 1-4: SerialNumber: 68B75C9F8BBBF60D07AF2DD82EF13754E90ECE70
Mar 23 21:50:32 [kernel] scsi10 : usb-storage 1-4:1.1
Mar 23 21:50:32 [kernel] usb 1-4: usbfs: interface 1 claimed by usb-storage while 'bcharge' sets config #1
Mar 23 21:50:33 [kernel] usb 1-4: reset high speed USB device using ehci_hcd and address 13

jerinkturion jserink # lsusb
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0a5c:2101 Broadcom Corp. A-Link BlueUsbA2 Bluetooth
Bus 002 Device 002: ID 046d:c019 Logitech, Inc. Optical Tilt Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 013: ID 0fca:8004 Research In Motion, Ltd.
Bus 001 Device 004: ID 046d:0896 Logitech, Inc. OrbiCam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

SANyone have any hints how to make this go? Is bcharge screwing things up? If so, why didn't that happen when using XFCE 4.6?

Cheers,
kjohn
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 14, 15, 16  Next
Page 9 of 16

 
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