another problem: power.c wants to write to this file: /sys/
android_power/auto_off_timeout

I don't see the android_power directory in the sysfs, ?

what is missing???

On Apr 11, 4:59 pm, Manjeet Pawar <[email protected]> wrote:
> Y dont u use procfs or ioctl...to check whats goin on inside...
>
>
>
>
>
>
>
> On Wed, Apr 11, 2012 at 8:17 PM, Ventanas <[email protected]> wrote:
> > found that errno is always 13, that is EACCES, so access no Permission
> > denied, so what can I do?
> > M
>
> > On Apr 11, 4:36 pm, Ventanas <[email protected]> wrote:
> > > ok, I am trying to debug the libhardware_legacy.so library that
> > > contains the power.c 'C'-code module that interacts with the linux-
> > > kernel power manager, but I have this problem:
>
> > > I want to open the /dev/kmsg file and write to it, but I get always
> > > -1, do you know why I cannot open("/dev/kmsg", O_WRONLY); from this
> > > module?
>
> > > while I can from a classic 'C' main-program in user mode.
>
> > > Marco
>
> > --
> > unsubscribe: [email protected]
> > website:http://groups.google.com/group/android-kernel

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to