Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-10-01 Thread Andrey Moshbear
On Sat, Oct 1, 2011 at 09:25, Indi  wrote:
> On Sat, Oct 01, 2011 at 07:06:20AM -0400, Andrey Moshbear wrote:
>>
>> Found the problem: setuid bit was missing; chmod 4711 did the trick
>> (verified via solid-hardware list).
>> Time to logout and login and see if that was all.
>>
>
> You're very courageous, posting that you found the solution before
> actually testing it. :D

I prefer the term "insane" :D



Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-10-01 Thread Indi
On Sat, Oct 01, 2011 at 07:06:20AM -0400, Andrey Moshbear wrote:
> 
> Found the problem: setuid bit was missing; chmod 4711 did the trick
> (verified via solid-hardware list).
> Time to logout and login and see if that was all.
> 

You're very courageous, posting that you found the solution before
actually testing it. :D

-- 
caveat utilitor
♫ ❤ ♫ ❤ ♫ ❤ ♫ ❤ 



Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-10-01 Thread Andrey Moshbear
On Sat, Oct 1, 2011 at 07:06, Andrey Moshbear  wrote:
> On Sat, Oct 1, 2011 at 04:50, Neil Bothwick  wrote:
>> On Sat, 1 Oct 2011 04:18:45 -0400, Andrey Moshbear wrote:
>>
>>> > This one caused my hotplugging to stop working in KDE. The fix was
>>> >
>>> > chmod o+x /usr/libexec/dbus-daemon-launch-helper
>>> >
>>>
>>> (udisks:[pid]): udisks-WARNING **: Couldn't enumerate devices: The
>>> permission of the setuid helper is not correct
>>>
>>> /usr/libexec/dbus-daemon-launch-helper 's perms are 711.
>>
>> It worked for me, no such errors.
>>
>> ls -l /usr/libexec/dbus-daemon-launch-helper
>> -rws--x--x 1 root messagebus 312K Sep 27 08:30 
>> /usr/libexec/dbus-daemon-launch-helper
>>
>> MAybe your problem is slightly different. My laptop has no problems with
>> the default permissions, both are running ~amd64.
>>
>
> Found the problem: setuid bit was missing; chmod 4711 did the trick
> (verified via solid-hardware list).
> Time to logout and login and see if that was all.
>

Yes, everything is now in order. Thanks to all who helped.



Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-10-01 Thread Andrey Moshbear
On Sat, Oct 1, 2011 at 04:50, Neil Bothwick  wrote:
> On Sat, 1 Oct 2011 04:18:45 -0400, Andrey Moshbear wrote:
>
>> > This one caused my hotplugging to stop working in KDE. The fix was
>> >
>> > chmod o+x /usr/libexec/dbus-daemon-launch-helper
>> >
>>
>> (udisks:[pid]): udisks-WARNING **: Couldn't enumerate devices: The
>> permission of the setuid helper is not correct
>>
>> /usr/libexec/dbus-daemon-launch-helper 's perms are 711.
>
> It worked for me, no such errors.
>
> ls -l /usr/libexec/dbus-daemon-launch-helper
> -rws--x--x 1 root messagebus 312K Sep 27 08:30 
> /usr/libexec/dbus-daemon-launch-helper
>
> MAybe your problem is slightly different. My laptop has no problems with
> the default permissions, both are running ~amd64.
>

Found the problem: setuid bit was missing; chmod 4711 did the trick
(verified via solid-hardware list).
Time to logout and login and see if that was all.



Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-10-01 Thread Neil Bothwick
On Sat, 1 Oct 2011 04:18:45 -0400, Andrey Moshbear wrote:

> > This one caused my hotplugging to stop working in KDE. The fix was
> >
> > chmod o+x /usr/libexec/dbus-daemon-launch-helper
> >  
> 
> (udisks:[pid]): udisks-WARNING **: Couldn't enumerate devices: The
> permission of the setuid helper is not correct
> 
> /usr/libexec/dbus-daemon-launch-helper 's perms are 711.

It worked for me, no such errors.

ls -l /usr/libexec/dbus-daemon-launch-helper
-rws--x--x 1 root messagebus 312K Sep 27 08:30 
/usr/libexec/dbus-daemon-launch-helper

MAybe your problem is slightly different. My laptop has no problems with
the default permissions, both are running ~amd64.


-- 
Neil Bothwick

Hello, this is an extension to the famous signature virus, called spymail.
Could you please copy me into your signature and send back what you were
doing last night between 10pm and 3am?


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-10-01 Thread Andrey Moshbear
On Fri, Sep 30, 2011 at 18:10, Neil Bothwick  wrote:
> On Fri, 30 Sep 2011 16:34:36 -0400, Andrey Moshbear wrote:
>
>> Also, recurring errors in the form of "Failed to execute program
>> /usr/libexec/dbus-daemon-launch-helper: Success", which is determined
>> to be EPERM, which is probably due to Bad Things in policykit.
>
> This one caused m,y hotplugging to stop working in KDE. The fix was
>
> chmod o+x /usr/libexec/dbus-daemon-launch-helper
>

(udisks:[pid]): udisks-WARNING **: Couldn't enumerate devices: The
permission of the setuid helper is not correct

/usr/libexec/dbus-daemon-launch-helper 's perms are 711.



Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-09-30 Thread Neil Bothwick
On Fri, 30 Sep 2011 16:34:36 -0400, Andrey Moshbear wrote:

> Also, recurring errors in the form of "Failed to execute program
> /usr/libexec/dbus-daemon-launch-helper: Success", which is determined
> to be EPERM, which is probably due to Bad Things in policykit.

This one caused m,y hotplugging to stop working in KDE. The fix was

chmod o+x /usr/libexec/dbus-daemon-launch-helper


-- 
Neil Bothwick

... "Yummy," said Pooh, as he hilted his paw into the "honeypot".


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-09-30 Thread Dale

Andrey Moshbear wrote:

2011/9/27 Jesús J. Guerrero Botella:

Check that the consolekit service is also on at bootup.

Besides that, the udisks, upower, consolekit, policykit and udev flags
apply here. Check they are on, particularly for kde-base/kdelibs
(emerge -pv kdelibs).

All are enabled.


What kdelibs (and kde, in general) version(s) are you using?

4.7.1


Hal hasn't been needed for disk mounting nor anything else for a long time.


Consolekit has indeed been in init, but hotplug and acpi are still
non-functional.
I don't know if this is related, but the kde policykit thingy dies
shortly after login due to a buffer overflow in memcpy.





Here is a list of what I have installed and as far as I know, everything 
works.  This includes my printer, camera and USB drives when inserted.


root@fireball / # equery l dbus kdelibs polkit consolekit
 * Searching for dbus ...
[IP-] [  ] sys-apps/dbus-1.4.12:0

 * Searching for kdelibs ...
[IP-] [  ] kde-base/kdelibs-4.7.1-r2:4

 * Searching for polkit ...
[IP-] [  ] sys-auth/polkit-0.101-r1:0

 * Searching for consolekit ...
[IP-] [  ] sys-auth/consolekit-0.4.5-r1:0
root@fireball / #

Maybe compare those.  If you need me to, I can post the emerge info with 
USE flags too.


Dale

:-)  :-)



Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-09-30 Thread Andrey Moshbear
2011/9/27 Jesús J. Guerrero Botella :
> Check that the consolekit service is also on at bootup.
>
> Besides that, the udisks, upower, consolekit, policykit and udev flags
> apply here. Check they are on, particularly for kde-base/kdelibs
> (emerge -pv kdelibs).

All are enabled.

> What kdelibs (and kde, in general) version(s) are you using?

4.7.1

> Hal hasn't been needed for disk mounting nor anything else for a long time.
>

Consolekit has indeed been in init, but hotplug and acpi are still
non-functional.
I don't know if this is related, but the kde policykit thingy dies
shortly after login due to a buffer overflow in memcpy.

Here's the output of solid-hardware list:
Object::connect: No such signal
QDBusAbstractInterface::DeviceAdded(QString) in
/var/tmp/portage/kde-base/kdelibs-4.7.1/work/kdelibs-4.7.1/solid/solid/backends/upower/upowermanager.cpp:67
Object::connect: No such signal
QDBusAbstractInterface::DeviceRemoved(QString) in
/var/tmp/portage/kde-base/kdelibs-4.7.1/work/kdelibs-4.7.1/solid/solid/backends/upower/upowermanager.cpp:69
Object::connect: No such signal
QDBusAbstractInterface::DeviceAdded(QDBusObjectPath) in
/var/tmp/portage/kde-base/kdelibs-4.7.1/work/kdelibs-4.7.1/solid/solid/backends/udisks/udisksmanager.cpp:70
Object::connect: No such signal
QDBusAbstractInterface::DeviceRemoved(QDBusObjectPath) in
/var/tmp/portage/kde-base/kdelibs-4.7.1/work/kdelibs-4.7.1/solid/solid/backends/udisks/udisksmanager.cpp:72
Object::connect: No such signal
QDBusAbstractInterface::DeviceChanged(QDBusObjectPath) in
/var/tmp/portage/kde-base/kdelibs-4.7.1/work/kdelibs-4.7.1/solid/solid/backends/udisks/udisksmanager.cpp:74
QStringList Solid::Backends::UDisks::UDisksManager::allDevicesInternal()
 error:  "org.freedesktop.DBus.Error.Spawn.ExecFailed"
virtual QStringList
Solid::Backends::UPower::UPowerManager::allDevices()  error:
"org.freedesktop.DBus.Error.Spawn.ExecFailed"
udi = '/org/kde/solid/udev/sys/devices/LNXSYSTM:00/LNXCPU:00'
udi = '/org/kde/solid/udev/sys/devices/LNXSYSTM:00/LNXCPU:01'
udi = '/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/adsp'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/audio'
udi = '/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/dsp'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/hwC0D0'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/hwC0D1'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/hwC0D2'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/mixer'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/pcmC0D0c'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/pcmC0D0p'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/pcmC0D1p'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/pcmC0D3p'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1b.0/sound/card0/controlC0'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1c.1/:03:00.0/net/wlan0'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1c.5/:08:00.0/net/eth0'
udi = 
'/org/kde/solid/udev/sys/devices/pci:00/:00:1d.7/usb2/2-5/2-5:1.0/video4linux/video0'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS0'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS1'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS2'
udi = '/org/kde/solid/udev/sys/devices/platform/serial8250/tty/ttyS3'
udi = '/org/kde/solid/udev/sys/devices/virtual/net/lo'
udi = '/org/kde/solid/udev/sys/devices/virtual/net/sit0'
udi = '/org/kde/solid/udev/sys/devices/virtual/sound/seq'
udi = '/org/kde/solid/udev/sys/devices/virtual/sound/sequencer'
udi = '/org/kde/solid/udev/sys/devices/virtual/sound/sequencer2'
udi = '/org/kde/solid/udev/sys/devices/virtual/sound/timer'
udi = '/org/freedesktop/UDisks'
udi = '/org/kde/fstab'
udi = '/org/kde/upnp'

Also, recurring errors in the form of "Failed to execute program
/usr/libexec/dbus-daemon-launch-helper: Success", which is determined
to be EPERM, which is probably due to Bad Things in policykit.



Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-09-27 Thread Jesús J . Guerrero Botella
Check that the consolekit service is also on at bootup.

Besides that, the udisks, upower, consolekit, policykit and udev flags
apply here. Check they are on, particularly for kde-base/kdelibs
(emerge -pv kdelibs).

What kdelibs (and kde, in general) version(s) are you using?

Hal hasn't been needed for disk mounting nor anything else for a long time.

-- 
Jesús Guerrero Botella



Re: [gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-09-24 Thread Andrey Moshbear
001100 Andrey "m05hbear" Vul
010010
00 andrey at moshbear dot net
11 andrey dot vul at gmail
101101 4163039923
110011

Today's quote:
[ ] Obsolete code offends me.
[ ] Be aware of [ ] Murphy's, [ ] Muphry's Law.
[ ] Use [ ] Occam's, [ ] Hanlon's razor.
[ ] Greenspun's Tenth Rule.
[ ] Sturgeon's Law, [ ] Pareto principle.
[ ] RTFM, [ ] RTF[__]
[ ] [___]




On Sat, Sep 24, 2011 at 15:38, Nikos Chantziaras  wrote:
> On 09/24/2011 09:43 PM, Andrey Moshbear wrote:
>>
>> Now that hal is out of he portage tree and uninstalled, I've noticed
>> that the following occur:
>> 1) no battery info (and other ACPI doesn't fare well too)
>> 2) Suspend key is broken; must use $sudo pm-suspend instead
>> 3) USB hotplug is broken; device notifier is oblivious to
>> inserted/removed USB devices
>>
>> Solutions?
>
> Do you have "udev" if your USE flags in make.conf?
>
>
>

While I did forget to include the output of emerge --info, udev is
indeed in USE. Here is the full output:

Portage 2.2.0_alpha54 (default/linux/amd64/10.0/desktop, gcc-4.4.5,
glibc-2.13-r4, 2.6.33-pf4 x86_64)
=
System uname: 
Linux-2.6.33-pf4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 20 Sep 2011 00:00:01 +
ccache version 3.1.3 [enabled]
app-shells/bash:  4.2_p10
dev-java/java-config: 2.1.11-r3
dev-lang/python:  2.6.6-r1, 2.7.2-r2, 3.1.3-r1, 3.2-r2
dev-util/ccache:  3.1.3
dev-util/cmake:   2.8.5-r2
dev-util/pkgconfig:   0.26
sys-apps/baselayout:  2.0.3
sys-apps/openrc:  0.9.2
sys-apps/sandbox: 2.5
sys-devel/autoconf:   2.13, 2.68
sys-devel/automake:   1.5-r1, 1.6.3-r1, 1.8.5-r4, 1.9.6-r3,
1.10.3, 1.11.1-r1
sys-devel/binutils:   2.21.1-r1
sys-devel/gcc:4.4.5, 4.5.3-r1
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:2.4-r1
sys-devel/make:   3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:   2.13-r4
Repositories: gentoo sunrise x11 proaudio desktop-effects multimedia
kde-sunset games roslin dev-zero lxde stuge wolf31o2 pd-overlay
moshbear-patched(wine and rtorrent patches; not in o.g.o)
Installed sets:
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config /usr/share/gnupg/qualified.txt
/var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/
/etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d
/etc/splash /etc/terminfo /etc/texmf/language.dat.d
/etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks
fixlafiles fixpackages news nostrip parallel-fetch preserve-libs
protect-owned sandbox sfperms strict unknown-features-warn
unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirrors.cs.wmich.edu/gentoo
http://gentoo.netnitco.net  
ftp://gentoo.mirrors.tds.net/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://gentoo.chem.wisc.edu/gentoo/

ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/
http://mirror.the-best-hosting.net
http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/
http://gentoo.chem.wisc.edu/gentoo/
ftp://gentoo.cites.uiuc.edu/pub/gentoo/
ftp://mirrors.rit.edu/gentoo/   
ftp://mirror.mcs.anl.gov/pub/gentoo/
ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/
ftp://lug.mtu.edu/gentoo/
http://gentoo.cites.uiuc.edu/pub/gentoo/";
LANG="en_CA.UTF-8"
LC_ALL="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j6"
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="/var/lib/layman/sunrise /var/lib/layman/x11
/var/lib/layman/pro-audio /var/lib/layman/desktop-effects
/var/lib/layman/multimedia /var/lib/layman/kde-sunset
/var/lib/layman/games /var/lib/layman/roslin /var/lib/layman/dev-zero
/var/lib/layman/lxde /var/lib/layman/stuge /var/lib/layman/wolf31o2
/var/lib/layman/pd-overlay /var/lib/layman/moshbear-patched"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3ds X a52 aac aalib acl acpi ads aften allegro alsa amd64 amr ao
apache2 api aspell audio audiofile automap

[gentoo-user] Re: kde4: no hardware info without sys-apps/hal

2011-09-24 Thread Nikos Chantziaras

On 09/24/2011 09:43 PM, Andrey Moshbear wrote:

Now that hal is out of he portage tree and uninstalled, I've noticed
that the following occur:
1) no battery info (and other ACPI doesn't fare well too)
2) Suspend key is broken; must use $sudo pm-suspend instead
3) USB hotplug is broken; device notifier is oblivious to
inserted/removed USB devices

Solutions?


Do you have "udev" if your USE flags in make.conf?