maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP) (https://talk.maemo.org/showthread.php?t=93878)

Estel 2014-10-27 19:49

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
Quote:

Originally Posted by sulu (Post 1444014)
This is from my primary N900 running Fremantle with KP:[code]# uname -a
Linux Nokia-N900-02-8 2.6.28.10-power52 #1 PREEMPT Sat Apr 6 11:59:23 UTC 2013 armv7l GNU/Linux
# ls /sys/class/power_supply/rx51-battery/
charge_full_design present technology type voltage_max_design
power subsystem temp uevent voltage_now
# cat /sys/class/power_supply/rx51-battery/uevent
POWER_SUPPLY_NAME=rx51-battery
POWER_SUPPLY_TYPE=Battery
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_VOLTAGE_MAX_DESIGN=4200000
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_VOLTAGE_NOW=4023000
POWER_SUPPLY_TEMP=240
POWER_SUPPLY_CHARGE_FULL_DESIGN=1323752[/code

It doesn't look like you have bq27x00_battery module loaded, OR you're looking into wrong sysfs node (rx51-battery vs bq27200-0 one).

/Estel

sulu 2014-10-27 21:31

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
Quote:

Originally Posted by Estel (Post 1444629)
It doesn't look like you have bq27x00_battery module loaded

Should I? :confused:

Both, my regular device and the testing device (runing latest CSSU thumb) use rx51_battery.


btw:
The new lxsession binary is available in Sid now and it actually shuts down and reboots.

wicket 2014-10-27 22:31

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
Quote:

Originally Posted by Niko2040 (Post 1443671)
What do you mean by broke the N900 power button functionality? When I press power button on my N900 with E19 + systemd, it's offer me to poweroff. E19 input settings recognize N900 power button as XF86PowerOff, and you can set action on this key at input settings as well as at ACPI settings too.

Sorry, I somehow missed your post before. When I tested the power button with systemd it was without X11 and it didn't work. Normally acpid will detect a power button press and run the action configured in /etc/acpi/events/powerbtn-acpi-support. I'm guessing that systemd was trying to be too clever by intercepting the button press. As soon as I installed sysvinit-core it started working again.

wicket 2014-10-27 23:45

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
Quote:

Originally Posted by sulu (Post 1443680)
I think I know why the battery monitor doesn't work.
For comparison my netbook:
Code:

$ cat /sys/class/power_supply/BAT0/uevent
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=8400000
POWER_SUPPLY_VOLTAGE_NOW=7500000
POWER_SUPPLY_CURRENT_NOW=1192000
POWER_SUPPLY_CHARGE_FULL_DESIGN=6580000
POWER_SUPPLY_CHARGE_FULL=4194000
POWER_SUPPLY_CHARGE_NOW=3337000
POWER_SUPPLY_CAPACITY=79
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_MODEL_NAME=901
POWER_SUPPLY_MANUFACTURER=ASUS
POWER_SUPPLY_SERIAL_NUMBER=

Notice the key POWER_SUPPLY_CHARGE_NOW which is used to determine the current charge of the battery:
Code:

$ cat /sys/class/power_supply/BAT0/charge_now
3237000

On the N900 (on battery) I get this:
Code:

$ cat /sys/class/power_supply/bq27200-0/uevent
POWER_SUPPLY_NAME=bq27200-0
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_VOLTAGE_NOW=4012000
POWER_SUPPLY_CURRENT_NOW=307912
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_TEMP=311
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CHARGE_FULL_DESIGN=2056320
POWER_SUPPLY_CYCLE_COUNT=22
POWER_SUPPLY_POWER_AVG=315818

POWER_SUPPLY_CHARGE_NOW is missing so the battery monitor has no way to determine the current charge of the battery:
Code:

$ cat /sys/class/power_supply/bq27200-0/charge_now
cat: /sys/class/power_supply/bq27200-0/charge_now: Keine Daten verfügbar

("No data available")

What kernel are you using under Debian? charge_now is available for me with 3.16-rc1 and 3.17 kernels and I've just noticed the the battery level widget is actually working in E17.

Code:

root@debian900:~# cat /sys/class/power_supply/bq27200-0/charge_now
406444
root@debian900:~# cat /sys/class/power_supply/bq27200-0/uevent
POWER_SUPPLY_NAME=bq27200-0
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_VOLTAGE_NOW=3615000
POWER_SUPPLY_CURRENT_NOW=270249
POWER_SUPPLY_CAPACITY=44
POWER_SUPPLY_CAPACITY_LEVEL=Normal
POWER_SUPPLY_TEMP=276
POWER_SUPPLY_TIME_TO_EMPTY_NOW=5400
POWER_SUPPLY_TIME_TO_EMPTY_AVG=5040
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CHARGE_FULL=915526
POWER_SUPPLY_CHARGE_NOW=406087
POWER_SUPPLY_CHARGE_FULL_DESIGN=2056320
POWER_SUPPLY_CYCLE_COUNT=114
POWER_SUPPLY_ENERGY_NOW=1322760
POWER_SUPPLY_POWER_AVG=243311
POWER_SUPPLY_HEALTH=Good

Quote:

Originally Posted by sulu (Post 1444014)
Edit2:
It would also be nice if the kernel could provide /dev/rfkill

This should just be a matter of enabling CONFIG_RFKILL in the kernel config file. If you try it and it works, report here and I'll enable it in build_kernel.sh.

Quote:

Originally Posted by sulu (Post 1444529)
And it would certainly be much better if suspend to RAM worked

It does work if you use the right kernel. It works for me with every kernel that I've tried other than the default 3.16-rc1.

Quote:

Originally Posted by sulu (Post 1444659)
Should I? :confused:

Both, my regular device and the testing device (runing latest CSSU thumb) use rx51_battery.

You need both. bq27x00_battery is for the battery monitor chip. In Debian, both are loaded by default.

wicket 2014-10-28 02:56

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
Quote:

Originally Posted by sulu (Post 1444014)
Edit:
Is there a way to give regular users write permissions to /sys/class/backlight/acx565akm/brightness

I got the brightness working in E17 as a regular user:

Code:

# chmod +s /usr/lib/enlightenment/utils/enlightenment_backlight
I wouldn't normally recommend a setuid fix (for security reasons) but it appears that this is how it's intended to work. You'll probably want to read through source and verify that there are no obvious exploits before setting this permanently or maybe report a bug so that the package maintainer can do the dirty work ;).

Shutdown options can also be enabled by editting /etc/enlightenment/sysactions.conf.

sulu 2014-10-28 23:08

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
Quote:

Originally Posted by wicket (Post 1444679)
What kernel are you using under Debian? charge_now is available for me with 3.16-rc1 and 3.17 kernels and I've just noticed the the battery level widget is actually working in E17.

3.16-rc1
But I just noticed that syslog is full with messages about missing battery calibration.
Maybe that's the reason why I have no full support here.

Quote:

Originally Posted by wicket (Post 1444679)
This should just be a matter of enabling CONFIG_RFKILL in the kernel config file. If you try it and it works, report here and I'll enable it in build_kernel.sh.

Sorry for the next part being vague, but I'm tired at the moment and I'm not really used to compiling kernels so I'm not sure about the right procedure.
I first tried setting this in freemangordons-linux-n900/.config:
Code:

CONFIG_RFKILL=1
CONFIG_RFKILL_REGULATOR=m

But it got overwritten during the run of build-kernel.sh.
Then I set it in freemangordons-linux-n900/arch/arm/configs/rx51_defconfig but that file got overwritten too.

So finally I set it in both and disabled this line in build-kernel.sh:
Code:

nice $NICENESS make -j $JOBS rx51_defconfig
Before the kernel was build I got some prompts about building some additional modules (e.g. IPv6) which I all confirmed because I thought some useless extra modules wouldn't hurt and after compiling the kernel I could actually find an rfkill.ko module in freemangordons-linux-n900/modules/lib/modules/3.16.0-rc1+/kernel/net/rfkill

So I copied the whole modules directory (the 2nd one under modules/lib/) and the kernel (by overwriting the old kernel) to the µSD and started the device N900 with it.
I got some error messages about the additional modules but the boot process suceeded. I could login via slim but once on the desktop the mouse didn't work and I had no way to check if the keyboard worked.
So I gave up and restord my backup of the µSD.



Quote:

Originally Posted by wicket (Post 1444692)
I got the brightness working in E17 as a regular user:

Code:

# chmod +s /usr/lib/enlightenment/utils/enlightenment_backlight

I'm on LXDE and I don't think the desktop provides an own CLI interface for brightness. I stumbled upon something on Google code that might help, but I haven't tried it yet:
http://code.google.com/p/backlight-applet/

Estel 2014-10-28 23:15

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
Quote:

Originally Posted by sulu (Post 1444659)
Should I? :confused:

Both, my regular device and the testing device (runing latest CSSU thumb) use rx51_battery.

Just as wicket said:

Quote:

Originally Posted by wicket (Post 1444679)
You need both. bq27x00_battery is for the battery monitor chip. In Debian, both are loaded by default.

...so i will only add that, under Maemo, you should have bq27x00_battery module loaded IF you want to use open source BME replacement (for having real battery capacity/current level data, instead of vanilla's BME guesswork) - apart from few other components. See:
http://talk.maemo.org/showthread.php?t=93183

(sorry for a semi-off-topic).

/Estel

Estel 2014-11-03 06:32

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
I wonder if this:
http://talk.maemo.org/showpost.php?p...&postcount=134

...might help to have fully working call functionality under Debian? Or at least sound without problems?

Sure, it's not yet fully functional ALSA without pulseaudio crapware altogether, but at least the Nokia pulseaudio bits solved would be still a huge step forward.

/Estel

freemangordon 2014-11-03 06:46

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
Quote:

Originally Posted by Estel (Post 1445544)
I wonder if this:
http://talk.maemo.org/showpost.php?p...&postcount=134

...might help to have fully working call functionality under Debian? Or at least sound without problems?

Sure, it's not yet fully functional ALSA without pulseaudio crapware altogether, but at least the Nokia pulseaudio bits solved would be still a huge step forward.

/Estel

The so-called xprot module (which is part of voice module blob in maemo) is still not ready. xprot is exactly what protects n900's speakers to not produce white smoke :). So, we still don't have the needed functionality.

xprot is the next thing I will try to finish.

EDIT:
BTW that shouldn't stop you from building what is already being done against debian PA and testing it. with external speakers connected to 3.5 mm jack n900 is perfectly safe.

AapoRantalainen 2014-11-08 19:48

Re: DebiaN900 - A set of scripts to facilitate the installation of native Debian (WIP)
 
Is there any way to get SGX working? As I tested about 6 months ago Jessie can run HIldon-desktop, but it really neads GLES.

Another option is major modding for hildon.


All times are GMT. The time now is 10:43.

vBulletin® Version 3.8.8