radekp / qtmoko

QtExtended, formerly known as Qtopia from TrollTech, discontinued by Nokia
http://qtmoko.org
Other
70 stars 39 forks source link

Missing kernel patches #123

Open ydirson opened 12 years ago

ydirson commented 12 years ago

"om resume-reason" apparently does not work, since it is expecting /sys/class/i2c-adapter/i2c-0/0-0073/neo1973-resume.0/resume_reason and/or /sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/neo1973-resume.0/resume_reason (according to strace), where we only have /sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/resume_reason

lindi- pointed to http://wiki.openmoko.org/wiki/Kernel/Upstreaming as the list of patches we should have

radekp commented 12 years ago

This should be IMO fixed in omhacks upstream package. Upstreaming is nice, but as far as i know we dont have better kernel for GTA02 that works reliably now.

radekp commented 12 years ago

This is untested patch for omhack:

diff --git a/omhacks/sysfs.c b/omhacks/sysfs.c index 0a333df..4d81a0d 100644 --- a/omhacks/sysfs.c +++ b/omhacks/sysfs.c @@ -117,6 +117,8 @@ static const char* scan_resume_reason() return "/sys/class/i2c-adapter/i2c-0/0-0073/neo1973-resume.0/resume_reason"; if (exists("/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/neo1973-resume.0/resume_reason")) return "/sys/devices/platform/s3c2440-i2c/i2c-0/0-0073/neo1973-resume.0/resume_reason";