very quick questions: startup of lxde, exports, usb babble, and shutdown

dear bbb experts:

robert nelson’s debian-lxde-7.7 image

[1] is it possible first to boot to a console, and then to start lxde with “startx”? (I looked for /etc/init.d/lx*, but there was nothing there.)

[2] the mass storage driver exports its BEAGLEBONE partition, seemingly as a whole device (not as a partition). thus, the host computer mounts /dev/sdb (if there is only one other sda) with the BBB’s 96MB partition. I looked in /etc/* whether I could find what enables this behavior, but failed.

[3] the log tells me about musb Babble interrupts to its host (powering) computer. I have tried this on multiple bbb’s and cables. is this “normal”? (I also wonder if there could still be some gremlins in the USB drivers. if I plug a keyboard into the host bbb port, and then I try a couple of times to insert/remove the BBB gadget port connection, it doesn’t connect the mass storage any longer. maybe the keyboard is defective, but the ports are different.)

[4] how does lxde shut down? the command line “shutdown now” and “reboot -p” do not do it for me. but the gui lxde powerdown does.

/iaw

To boot to a console rename /etc/rc2.d/@S04lightdm to @K04lightdm
There is no startx in the debian that comes preinstalled with bbb.

but you could install it and set it up if you so wished to go that route.

thank you, barry and don. the graphical startup can be disabled by moving not just rc2.d/S04lightdm to K04lightdm, but all rc*.d/S04lightdm. I was looking for xinit to see if I could get startx to set up, but there is no xinit package on arm. but this is not too bad. I can now write a script that checks whether hdmi is connected at boot and starts the X gui only then by moving the rc*d/*04lightdm files around.

since when has there not been one?

# apt-get install xinit
   ​...
   Unable to locate package xinit

I still bet its PEBKAC scroll to the bottom of the page you will see a list of every arch its currently on. I am able to use startx. It is there for soft and hard float.

I am too lazy to boot up a debian image right now to show the full output from installing. But I know its there and its possible to use xinit with debian on arm.

since when has there not been one?
Debian -- Error

   # apt-get install xinit
   ...
   Unable to locate package xinit
   #

I think that not all packages are available for all architectures. this one
is available on intel platforms, but not arm platforms, afaict. I may be
wrong.

Well about 99%-ish is available..

my setup is standard 7.7 debian from robert nelson, without modifications.
I did an apt-get upgrade and apt-get update first. I did not add new
sites...

It's there:

https://packages.debian.org/wheezy/xinit

sudo apt-get update ; sudo apt-get install xinit

Regards,

lol maybe you linking the same page will work this time lol

I doubt it. :wink:

It's there...

root@a3-imx6q-wandboard-2gb:/# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.7 (wheezy)
Release: 7.7
Codename: wheezy

root@a3-imx6q-wandboard-2gb:/# apt-get install xinit
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  fontconfig-config keyboard-configuration libaudit0 libdrm-nouveau1a
libdrm-radeon1 libdrm2 libfontconfig1 libfontenc1 libfreetype6
libgl1-mesa-dri
  libgl1-mesa-glx libglapi-mesa libice6 libmtdev1 libpci3
libpciaccess0 libpixman-1-0 libprocps0 libsm6 libudev0 libusb-1.0-0
libutempter0 libx11-xcb1
  libxaw7 libxcb-glx0 libxcb-shape0 libxcomposite1 libxdamage1
libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxkbfile1 libxmu6
libxpm4 libxrandr2
  libxrender1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 pciutils
procps ttf-dejavu-core udev usbutils x11-common x11-utils
x11-xkb-utils xbitmaps
  xfonts-base xfonts-encodings xfonts-utils xkb-data xserver-common
xserver-xorg xserver-xorg-core xserver-xorg-input-all
xserver-xorg-input-evdev
  xserver-xorg-input-synaptics xserver-xorg-input-wacom
xserver-xorg-video-all xserver-xorg-video-ati xserver-xorg-video-fbdev
  xserver-xorg-video-mach64 xserver-xorg-video-nouveau
xserver-xorg-video-r128 xserver-xorg-video-radeon
xserver-xorg-video-vesa xterm
Suggested packages:
  libglide3 mesa-utils xfs xserver xfonts-100dpi xfonts-75dpi
xfonts-scalable gpointing-device-settings touchfreeze xinput
firmware-linux
  xfonts-cyrillic
The following NEW packages will be installed:
  fontconfig-config keyboard-configuration libaudit0 libdrm-nouveau1a
libdrm-radeon1 libdrm2 libfontconfig1 libfontenc1 libfreetype6
libgl1-mesa-dri
  libgl1-mesa-glx libglapi-mesa libice6 libmtdev1 libpci3
libpciaccess0 libpixman-1-0 libprocps0 libsm6 libudev0 libusb-1.0-0
libutempter0 libx11-xcb1
  libxaw7 libxcb-glx0 libxcb-shape0 libxcomposite1 libxdamage1
libxfixes3 libxfont1 libxft2 libxi6 libxinerama1 libxkbfile1 libxmu6
libxpm4 libxrandr2
  libxrender1 libxt6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 pciutils
procps ttf-dejavu-core udev usbutils x11-common x11-utils
x11-xkb-utils xbitmaps
  xfonts-base xfonts-encodings xfonts-utils xinit xkb-data
xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all
  xserver-xorg-input-evdev xserver-xorg-input-synaptics
xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-ati
xserver-xorg-video-fbdev
  xserver-xorg-video-mach64 xserver-xorg-video-nouveau
xserver-xorg-video-r128 xserver-xorg-video-radeon
xserver-xorg-video-vesa xterm
0 upgraded, 73 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.7 MB of archives.
After this operation, 64.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.

Regards,

I’ll be darned. of course it’s there. duh! I had forgotten to re-run the upgrade on my BBB after my re-flash. (I experiment for a while, and then to make sure I don’t screw things up when I report back, I re-flash.)

at least I learned what PEBKAC means, looking it up at the Urban Dict.

/iaw

at least I learned what PEBKAC means, looking it up at the Urban Dict.

user error . . .

So if in doubt about a package name, just good the package / tool name and 99.9% of the time you’ll find what you’re looking for . . .

These also help out tons:

<search on package names>
https://packages.debian.org/name

<search on source package names>
https://packages.debian.org/src:name

<search for paths ending in the keyword>
https://packages.debian.org/file:path

Regards,

So if in doubt about a package name, just google the package / tool name and
99.9% of the time you’ll find what you’re looking for . . .

towards item [1]

I think that something like “systemctl disable graphical.target” will stop it from booting into an x environment (for systemd inits). I don’t know if “systemctl enable graphical.target” will start it up again or just re-enable it for the next boot. Maybe check a systemd guide for Fedora and try some of their commands (Systemd guidance is pretty sparse in the Debian world.)

Cheers.

try:
# systemctl isolate multi-user.target 
(or)
# systemctl isolate runlevel3.target
to turn of X without rebooting

and to turn it back on try:
# systemctl isolate graphical.target
(or)
#systemctl isolate runlevel5.target