You are not logged in.

#101 2016-07-21 07:40:50

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: Reorganize autostart

Another vote in favor of leaving synclient/syndaemon in here.  I still have my eye on a desktop touchpad to replace my mouse (I keep forgetting to add it to my Amazon cart) and I wouldn't be surprised if more BL users have laptops than desktops.


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#102 2016-07-21 07:57:00

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,661
Website

Re: Reorganize autostart

pvsage wrote:

Another vote in favor of leaving synclient/syndaemon in here.

OK let's do that. As @hhh pointed out, it's not much RAM anyway.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#103 2016-07-21 20:12:41

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,157
Website

Re: Reorganize autostart

It's clearly commented, too. We'll add a note about it in the Release Notes.


I don't care what you do at home. Would you care to explain?

Online

#104 2016-07-23 04:04:58

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,661
Website

Re: Reorganize autostart

We seem to be getting close to the final new autostart file!
I've taken @hhh's latest version and made a couple of small changes:
*) Added a comment to the touchpad section that it's OK to comment it out.
*) Restored the bl-compositor command (instead of 'compton -b'), because the new version of bl-compositor has the '-b' option built in.
*) Moved the pulseaudio/volumeicon pair up just after compton/tint2, because it felt neater.
*) Restored fdpowermon and clipit - they're needed by default.
*) Added a commented-out bl-fortune entry, just as a reminder that some day we might add it.

If that seems OK I'll commit it to the deuterium branch of bunsen-configs, along with skel/.config/autostart/pulseaudio.desktop. Of course there's still time to tweak it, but at least something will be up in the repo.

EDIT: forgot to paste it in:

### SETTINGS START

## Turn on/off system beep.
xset b off

## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 250 25

## Add keyboard mapping.
#xmodmap -e "keysym Insert = Multi_key"

## Disable CapsLock
setxkbmap -option ctrl:nocaps

### TOUCHPAD: comment out the next two entries if you don't have one

## Configure touchpad. See 'man synaptics' for more info.
synclient VertEdgeScroll=1 HorizEdgeScroll=1 TapButton1=1 2>/dev/null

## Disable touchpad while typing
syndaemon -i .5 -K -t -R -d &

### TOUCHPAD END

### SETTINGS END

## GNOME PolicyKit authentication
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &

## Set a wallpaper
nitrogen --restore

## Compton
bl-compositor --start

## Start the tint2 session (the default tint2 will run if no sessions have been set)
bl-tint2-session

## Start PulseAudio (replaces /etc/xdg/autostart/pulseaudio.desktop)
start-pulseaudio-x11

## Volume control for systray
volumeicon &

## Start the Conky session (the default conkyrc will run if no sessions have been set)
bl-conky-session --autostart &

## Start the battery applet
fdpowermon &

## Start Clipboard manager
clipit &

## bl-welcome - post-installation script, will not run in a live session and
## only runs once. Safe to remove.
(sleep 10; bl-welcome --firstrun) &

## bl-fortune - have the system come up with a little adage (not yet enabled)
#(sleep 120; bl-fortune) &

Last edited by johnraff (2016-07-23 04:06:20)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#105 2016-07-23 04:19:44

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,157
Website

Re: Reorganize autostart

I'm still having problems in a live session, tint2 and conky either don't start or tint2 starts with no systray and no conky, running 'Restart tint2' from the root menu brings everything up. Restart of tint2 at the end as a fix? A separate autostart for live sessions? I don't know. Damn frustrating.

-edit- Also, the compositor restart should be removed from bl-tint2-session and bl-tint2-restart, I think.


I don't care what you do at home. Would you care to explain?

Online

#106 2016-07-23 06:08:49

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,661
Website

Re: Reorganize autostart

hhh wrote:

I'm still having problems in a live session, tint2 and conky either don't start or tint2 starts with no systray and no conky, running 'Restart tint2' from the root menu brings everything up. Restart of tint2 at the end as a fix? A separate autostart for live sessions?

Frustrating indeed. That same system runs OK after it's installed? Can I have a copy of the iso to try?


hhh wrote:

Also, the compositor restart should be removed from bl-tint2-session and bl-tint2-restart, I think.

I thought that had already been discussed and agreed on? In order:

johnraff wrote:

put a tint2 restart (only if tint2 is running) in bl-compositor's --restart code, and take the compositor restart out of bl-tint2-restart?

johnraff wrote:

I suggest removing the compositing restart from bl-tint2-restart and adding a tint2 restart to bl-compositor --restart. That seems to work here.

hhh wrote:

https://forums.bunsenlabs.org/viewtopic … 870#p32870
Removing "bl-compositor --restart" from our tint2 scripts solves everything for me.

johnraff wrote:

^ That looks like the solution, plus adding a call to bl-tint2restart to the compositor restart code, to make sure tint2 is always started after compton.

johnraff wrote:

^Those changes are now pushed to the deuterium branches of bunsen-utilities and bunsen-pipemenus.

Anyway it's in deuterium already. smile


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#107 2016-07-23 06:29:16

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,157
Website

Re: Reorganize autostart

Yes, things seem fine with an install onto metal. OK, when I have fresh eyes I'll spin another build and upload it for testing.


I don't care what you do at home. Would you care to explain?

Online

#108 2016-07-24 08:27:06

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,661
Website

Re: Reorganize autostart

Sorry to muddy the waters yet again, but please see this post about PA and volumeicon. I'll probably have yet another modification to suggest.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#109 2016-08-02 08:25:28

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,661
Website

Re: Reorganize autostart

Maybe this will be it.

*) Added possible alternative use of capslock key:

## Disable CapsLock
setxkbmap -option ctrl:nocaps
# alternative: use as compose key
#setxkbmap -option compose:caps

*) Changed the PA startup command to bl-start-pulseaudio-x11 (to be shipped in bunsen-configs, along with this file).

*) Added comments that compositor must be started before tint2, and PA before volumeicon.

Look OK?

### SETTINGS START

## Turn on/off system beep.
xset b off

## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 250 25

## Add keyboard mapping.
#xmodmap -e "keysym Insert = Multi_key"

## Disable CapsLock
setxkbmap -option ctrl:nocaps
# alternative: use as compose key
#setxkbmap -option compose:caps

### TOUCHPAD: comment out the next two entries if you don't have one

## Configure touchpad. See 'man synaptics' for more info.
synclient VertEdgeScroll=1 HorizEdgeScroll=1 TapButton1=1 2>/dev/null

## Disable touchpad while typing
syndaemon -i .5 -K -t -R -d &

### TOUCHPAD END

### SETTINGS END

## GNOME PolicyKit authentication
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &

## Set a wallpaper
nitrogen --restore

## NOTE: composition must be started before tint2
## Compton
bl-compositor --start

## Start the tint2 session (the default tint2 will run if no sessions have been set)
bl-tint2-session

## NOTE: PulseAudio must be started before volumeicon
## Start PulseAudio (replaces /etc/xdg/autostart/pulseaudio.desktop)
bl-start-pulseaudio-x11

## Volume control for systray
volumeicon &

## Start the Conky session (the default conkyrc will run if no sessions have been set)
bl-conky-session --autostart &

## Start the battery applet
fdpowermon &

## Start Clipboard manager
clipit &

## bl-welcome - post-installation script, will not run in a live session and
## only runs once. Safe to remove.
(sleep 10; bl-welcome --firstrun) &

## bl-fortune - have the system come up with a little adage (not yet enabled)
#(sleep 120; bl-fortune) &

EDIT: Anyway, I've put these changes in bunsen-configs/deuterium so they don't get forgotten. Of course there's still time to tweak things before merging into master.

Last edited by johnraff (2016-08-02 09:47:10)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB