Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - chrisbirkinshaw

Pages: 1 [2] 3 4 ... 6
16
On my core I have 2 disk - the boot and a data drive. The data drive appears as /mnt/device/92 and of course is symlinked into the normal dirs, for example:

10EAVS_External (sdb1)-CORE [92] -> /mnt/device/92/public/data/videos

The problem is that the MDs mount the home folder using CIFs, and the symlinks are not followed (they lead to /mnt/device/92 which is not mounted on the MD).

Here is the workaround (on the MD):

1. mkdir /mnt/device/92
2. echo "//192.168.80.1/Storage92$                       /mnt/device/92          cifs iocharset=utf8,credentials=/usr/pluto/var/sambaCredentials.secret 1 1" >> /etc/fstab


Question is, what is the appropriate solution for this?

Thanks,

Chris

17
UPDATE: I changed the title of this thread as it now affects my other non-ION system, also with a hda intel chip. This is related to the kernel upgrade - see here:

http://bbs.archlinux.org/viewtopic.php?id=69658

and here for some assistance:

http://wiki.sabayonlinux.org/index.php?title=HOWTO:_Resolve_Problems_with_HDA-Intel_Sound_Cards

SOLUTION: The only solution I found was to compile alsa .22 drivers from source:

1. wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.22.1.tar.bz2
2. tar xjf alsa-driver-1.0.22.1.tar.bz2
3. cd alsa-driver-1.0.22.1
4. ./configure
5. make && make install

Be sure to reboot afterwards


------------------------------------------








After the recent alsa upgrade my nvidia ION based system no longer shows any digital devices. I have tried adding options in the /etc/modules.d/alsa-base.conf files as follows:

options snd-hda-intel model=3stack-6ch-dig enable=1 index=0

I also tried 6-stack-dig, and a bunch of other combos based on blog posts I found on the net. Any ideas?

NB it was working up until yesterday.

The post below may offer some background:

http://forum.linuxmce.org/index.php?topic=9358.0

Chris

18
Users / [FIXED] 0810 beta unmet dependencies for mythtv
« on: February 04, 2010, 09:51:15 pm »
I ran an apt-get dist-upgrade and now it seems mythtv has been uninstalled. If I try to apt-get install it I see this:

Code: [Select]
dcerouter:/var/log/pluto# apt-get install mythtv
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
  mythtv: Depends: mythtv-database (= 2:0.22.0-fixes23426-0ubuntu0) but 2:0.23.0~trunk-23168-0ubuntu0 is to be installed
          Depends: mythtv-frontend (= 2:0.22.0-fixes23426-0ubuntu0) but it is not going to be installed
          Depends: mythtv-backend (= 2:0.22.0-fixes23426-0ubuntu0) but it is not going to be installed
E: Broken packages

Has anyone else seen this?

Thanks,

Chris


19
Users / Anyone implemented Brightness sensors?
« on: December 21, 2009, 03:44:16 pm »

I was looking at this ZWave triple sensor and wondered if anyone had managed to do any cool stuff with brightness sensors?

http://www.zwave4u.com/products/en/Sensors/EZMotion-Triple-Sensor.html

Examples:

- Only change lighting when starting/stopping watching media if it's dark outside
- Auto adjust lights to keep constant ambient level

Thanks,

Chris

20
Users / ZWave never starts up properly (Beta2) [SOLVED]
« on: December 18, 2009, 04:06:16 pm »
Edit: The only way I managed to fix this was by deleting the device and adding again. No idea why this worked!




When I set the COM port of my ZWave device and reload the router I get the following in the device log:

========== NEW LOG SECTION ==========
1   12/18/09 14:31:13   35 (spawning-device)   Starting... 20
1   12/18/09 14:31:13   35 (spawning-device)   Found /usr/pluto/bin/ZWave
Return code: 255
3   12/18/09 14:31:13   35 (spawning-device)   Device died... count=20/50 dev=35
Fri Dec 18 14:31:13 GMT 2009 died


When I run the device from the command line I get success:

# /usr/pluto/bin/ZWave -d 35
ZWave, open edition, v.0.2
Visit www.linuxmce.org for source code and license information

05   12/18/09 15:00:05.975      Child device 36 is disabled <0xb79406c0>
05   12/18/09 15:00:05.976      Child device 37 is disabled <0xb79406c0>
05   12/18/09 15:00:05.976      Child device 38 is disabled <0xb79406c0>
05   12/18/09 15:00:05.976      Child device 39 is disabled <0xb79406c0>
05   12/18/09 15:00:05.976      Child device 40 is disabled <0xb79406c0>
05   12/18/09 15:00:05.976      Child device 41 is disabled <0xb79406c0>
05   12/18/09 15:00:05.976      Child device 42 is disabled <0xb79406c0>
05   12/18/09 15:00:05.976      Child device 43 is disabled <0xb79406c0>
05   12/18/09 15:00:09.071      No callback received: await_callback: 64 timer: 31 <0xb793fb90>
05   12/18/09 15:00:09.279      Got reply to ZW_MEMORY_GET_ID, Home id: 0x00d8c4d8, our node id: 1 <0xb793fb90>
05   12/18/09 15:00:09.491      Got reply to GET_SUC_NODE_ID, node: 1 <0xb793fb90>
05   12/18/09 15:00:10.267      Finished building node list: <0xb793fb90>
05   12/18/09 15:00:10.268      Node: 1 basic: 0x2 generic: 0x2 specific: 0x1 pluto: 1945 <0xb793fb90>
05   12/18/09 15:00:10.268      Node: 5 basic: 0x4 generic: 0x11 specific: 0x1 pluto: 38 <0xb793fb90>
05   12/18/09 15:00:10.268      Node: 6 basic: 0x4 generic: 0x11 specific: 0x1 pluto: 38 <0xb793fb90>
05   12/18/09 15:00:10.268      Node: 7 basic: 0x3 generic: 0x10 specific: 0x0 pluto: 37 <0xb793fb90>
05   12/18/09 15:00:10.268      Node: 8 basic: 0x4 generic: 0x11 specific: 0x1 pluto: 38 <0xb793fb90>
05   12/18/09 15:00:10.268      Node: 9 basic: 0x4 generic: 0x11 specific: 0x1 pluto: 38 <0xb793fb90>
05   12/18/09 15:02:12.334      void ClientSocket::Disconnect() on this socket: 0x8c4d3e8 (m_Socket: 6) <0xb79406c0>


Right now the only workaround I have is to run the command line in a screen, but as soon as the router is reloaded it is killed, then on the failed restart the device is set to disabled and the COM port cleared, which is quite annoying.

Has anyone got any ideas about this one?

Regards,

Chris

21
Users / Backup config then upgrade to 810 and restore config?
« on: November 20, 2009, 07:49:14 pm »
Is it possible to:

1. Backup config on 0710
2. Wipe system and install 0810 beta
3. Restore the 0710 backup onto 0810

If not, is there any way to preserve configuration - i.e. scenarios, templates, room layout, AV routing etc?

Regards,

Chris

22
As per the title - a useful feature in the media browser? Or as part of something much bigger - smart playlists?

23
I wonder if anyone can tell me what is wrong here?

I am trying to make a device which you can configure with the device id of an X10 or zwave module which will control the power to your AV rack (amps, TV, etc). The idea is that you connect audio and/or video pipes to it and the on/off code turns the power switch on/off.

The error I get is a bit confusing when the ruby code is run... "For obscure reasons could not handle the message <0xb57b4b90>"

Below is the code and the error message:

Code: [Select]
RCODE:
   0:require 'Ruby_Generic_Serial_Device'
   1:class Command < Ruby_Generic_Serial_Device::RubyCommandWrapper
   2:end
   3:class Device_128 < Ruby_Generic_Serial_Device::RubySerialWrapper
   4:#### 192 ####################################################################
   5:def cmd_192(pk_pipe, pk_device_pipes, cmd=nil)
   6:@returnParamArray.clear
   7:target = device_.devdata_[278]
   8:priority = 1
   9:type = 1
  10:command = 192
  11:log('Turning on device: ' + target.to_s)
  12:cmd = Command.new(target, target,  priority, type, command)
  13:SendCommand(cmd)
  14:return @returnParamArray
  15:end
  16:#### 193 ####################################################################
  17:def cmd_193(pk_pipe, cmd=nil)
  18:@returnParamArray.clear
  19:target = device_.devdata_[278]
  20:priority = 1
  21:type = 1
  22:command = 193
  23:log('Turning off device: ' + target.to_s)
  24:cmd = Command.new(target, target,  priority, type, command)
  25:SendCommand(cmd)
  26:return @returnParamArray
  27:end
  28:#### PRIVATE METHODS ####################################################################
  29:  def log(line)
  30:          $log = File.open("/var/log/pluto/" + device_.devid_.to_s + "_Generic_Serial_Device.log", "a")
  31:    logTime = Time.now
  32:    timeStr = logTime.strftime("%d-%m-%Y  %H:%M:%S  ")
  33:    $log.puts timeStr + "(***):" + line.to_s
  34:          $log.close
  35:  end
  36:#### START SETTERS ####################################################################
  37:def initialize()
  38:super
  39:@returnParamArray=Array.new
  40:end
  41:####  END  SETTERS ####################################################################
  42:end
 44:05 06/12/09 22:08:12.099 GSDMessageTranslator isCmdImplemented = true <0xb5fb5b90>
05 06/12/09 22:08:12.099 #### Pre-Process Queue = 1 <0xb5fb5b90>
05 06/12/09 22:08:12.102 GSDMessageTranslator isCmdImplemented = false <0xb5fb5b90>
05 06/12/09 22:08:12.123 GSDMessageTranslator isCmdImplemented = false <0xb5fb5b90>
05 06/12/09 22:08:12.123 #### Pre-Process Queue = 2 <0xb5fb5b90>
05 06/12/09 22:08:12.123 _QueueProc Pre - 192 : 0 <0xb77b8b90>
05 06/12/09 22:08:12.123 GSD-Sleep Pre 192 : 0 <0xb77b8b90>
05 06/12/09 22:08:12.123 Process Queue = 1 <0xb77b8b90>
05 06/12/09 22:08:12.132 GSDMessageTranslator isCmdImplemented = true <0xb5fb5b90>
05 06/12/09 22:08:12.132 #### Pre-Process Queue = 2 <0xb5fb5b90>
05 06/12/09 22:08:12.133 GSDMessageTranslator isCmdImplemented = false <0xb5fb5b90>
05 06/12/09 22:08:12.133 #### Pre-Process Queue = 3 <0xb5fb5b90>
05 06/12/09 22:08:12.136 Parameter:  <0xb57b4b90>
05 06/12/09 22:08:12.136 Parameter:  <0xb57b4b90>
12-06-2009  22:08:12  (***):Turning on device: 51
01 06/12/09 22:08:12.138 Error while calling method: Cannot call class method: cmd_192
error: No matching function for overloaded 'new_RubyCommandWrapper', line: 12
backtrace:
in: (eval): 12
from (eval):12:in `initialize'
from (eval):12:in `new'
from (eval):12:in `cmd_192'
 <0xb57b4b90>
01 06/12/09 22:08:12.138 For obscure reasons could not handle the message <0xb57b4b90>

Thanks in advance,

Chris


24
Users / Using Device State and Room State in Respond to Events
« on: June 11, 2009, 10:43:12 pm »
Can we use device state in Respond to Events? I think not but just checking in case I missed something.

e.g. have a light sensor and only turn lights on following motion detection if the light sensor indicates that it is dark?

Also how do we use room state? You could add to the above example "and living room state not equals watching media" or similar. I can see the option there but can't find reference to the states anywhere and whether this works.

Regards,

Chris

25
Users / COM port of ZWave USB changed on Router reload
« on: May 05, 2009, 04:52:03 pm »
Whenever I reload my router my zwave USB dongle COm port setting is changed to the first in the drop down list (already used by another device). If I change it to the correct setting and reload the router then it always goes back to the first COM port in the list.

Has anyone else seen this?

Thanks,

Chris


26
I wanted to install mldonkey-server but see the archives have been removed from archive.ubuntu.com and I now get a lot of 404 errors on apt-get update.

Is there much that can be done here or is the answer to simply wait for 0810?

Thanks,

Chris


Code: [Select]
# apt-get update
Ign file: ./ Release.gpg
Ign file: ./ Translation-en_US                                                                     
Ign file: ./ Release                                                                               
Ign file: ./ Packages                                                                               
Ign http://archive.ubuntu.com gutsy Release.gpg                                                     
Ign http://archive.ubuntu.com gutsy/main Translation-en_US                                         
Ign http://archive.ubuntu.com gutsy/restricted Translation-en_US                       
Ign http://archive.ubuntu.com gutsy/multiverse Translation-en_US                       
Ign http://archive.ubuntu.com gutsy/universe Translation-en_US                         
Ign http://archive.ubuntu.com gutsy-security Release.gpg                               
Ign http://archive.ubuntu.com gutsy-security/main Translation-en_US               
Ign http://archive.ubuntu.com gutsy-security/restricted Translation-en_US                               
Ign http://archive.ubuntu.com gutsy-security/multiverse Translation-en_US                               
Ign http://archive.ubuntu.com gutsy-security/universe Translation-en_US                                 
Ign http://archive.ubuntu.com gutsy-updates Release.gpg                                                 
Ign http://archive.ubuntu.com gutsy-updates/main Translation-en_US                                       
Ign http://archive.ubuntu.com gutsy-updates/restricted Translation-en_US                                                 
Ign http://archive.ubuntu.com gutsy-updates/multiverse Translation-en_US                                                 
Ign http://archive.ubuntu.com gutsy-updates/universe Translation-en_US                                                   
Ign http://archive.ubuntu.com replacements_debian Release.gpg                                   
Ign http://archive.ubuntu.com replacements_debian/main Translation-en_US                       
Ign http://archive.ubuntu.com gutsy Release                                                     
Ign http://archive.ubuntu.com gutsy-security Release                                           
Ign http://archive.ubuntu.com gutsy-updates Release                                             
Ign http://archive.ubuntu.com replacements_debian Release                                       
Ign http://linuxmce.com ./ Release.gpg                                                         
Ign http://linuxmce.com ./ Translation-en_US                         
Ign http://archive.ubuntu.com gutsy/main Packages                   
Ign http://archive.ubuntu.com gutsy/restricted Packages             
Ign http://archive.ubuntu.com gutsy/multiverse Packages             
Ign http://archive.ubuntu.com gutsy/universe Packages               
Ign http://archive.ubuntu.com gutsy-security/main Packages           
Ign http://archive.ubuntu.com gutsy-security/restricted Packages     
Ign http://archive.ubuntu.com gutsy-security/multiverse Packages     
Ign http://deb.linuxmce.com 20dev_ubuntu Release.gpg                 
Ign http://deb.linuxmce.com 20dev_ubuntu/main Translation-en_US     
Ign http://archive.ubuntu.com gutsy-security/universe Packages       
Ign http://archive.ubuntu.com gutsy-updates/main Packages           
Ign http://archive.ubuntu.com gutsy-updates/restricted Packages     
Ign http://linuxmce.com ./ Release                                   
Ign http://archive.ubuntu.com gutsy-updates/multiverse Packages     
Ign http://archive.ubuntu.com gutsy-updates/universe Packages       
Ign http://archive.ubuntu.com replacements_debian/main Packages     
Err http://archive.ubuntu.com gutsy/main Packages                   
  404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com gutsy/restricted Packages             
  404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com gutsy/multiverse Packages             
  404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com gutsy/universe Packages               
  404 Not Found [IP: 91.189.88.31 80]
Ign http://deb.linuxmce.com 20dev_ubuntu Release                     
Err http://archive.ubuntu.com gutsy-security/main Packages           
  404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com gutsy-security/restricted Packages     
  404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com gutsy-security/multiverse Packages     
  404 Not Found [IP: 91.189.88.31 80]
Ign http://linuxmce.com ./ Packages                                 
Err http://archive.ubuntu.com gutsy-security/universe Packages       
  404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com gutsy-updates/main Packages           
  404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com gutsy-updates/restricted Packages     
  404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com gutsy-updates/multiverse Packages     
  404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com gutsy-updates/universe Packages       
  404 Not Found [IP: 91.189.88.31 80]
Err http://archive.ubuntu.com replacements_debian/main Packages     
  404 Not Found [IP: 91.189.88.31 80]
Ign http://deb.linuxmce.com 20dev_ubuntu/main Packages               
Err http://linuxmce.com ./ Packages           
  404 Not Found
Hit http://deb.linuxmce.com 20dev_ubuntu/main Packages
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/main/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/restricted/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/multiverse/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy/universe/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/main/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/restricted/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/multiverse/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-security/universe/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/main/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/restricted/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/multiverse/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/gutsy-updates/universe/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://archive.ubuntu.com/ubuntu/dists/replacements_debian/main/binary-i386/Packages.gz  404 Not Found [IP: 91.189.88.31 80]
Failed to fetch http://linuxmce.com/ubuntu/./Packages.gz  404 Not Found
Reading package lists... Done
E: Some index files failed to download, they have been ignored, or old ones used instead.


27
Users / ZWave: Best inclusion remote?
« on: April 29, 2009, 12:14:40 pm »
I have a Tricklestar USB Zwave adapter but it seems I need an Inclusion Remote to add the devices to my network.

Should I purchase the Tricklestar remote, or get this one (http://www.letsautomate.com/11109.cfm?), which is cheaper?

Thanks,

Chris


28
I am unable to transfer any files onto the second drive of my core, as it keeps getting unmounted. I ran the following command:

while [ true ] ; do echo "`date` : `df | grep sdb`" ; sleep 5 ; done

and get this output:
Code: [Select]
Sat Apr 11 19:27:32 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:27:38 BST 2009 :
Sat Apr 11 19:27:43 BST 2009 :
Sat Apr 11 19:27:48 BST 2009 :
Sat Apr 11 19:27:53 BST 2009 :
Sat Apr 11 19:27:58 BST 2009 :
Sat Apr 11 19:28:03 BST 2009 :
Sat Apr 11 19:28:08 BST 2009 :
Sat Apr 11 19:28:13 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /tmp/tmp.KryNc31477
Sat Apr 11 19:28:18 BST 2009 :
Sat Apr 11 19:28:23 BST 2009 :
Sat Apr 11 19:28:28 BST 2009 :
Sat Apr 11 19:28:33 BST 2009 :
Sat Apr 11 19:28:38 BST 2009 :
Sat Apr 11 19:28:43 BST 2009 :
Sat Apr 11 19:28:48 BST 2009 :
Sat Apr 11 19:28:53 BST 2009 :
Sat Apr 11 19:28:58 BST 2009 :
Sat Apr 11 19:29:03 BST 2009 :
Sat Apr 11 19:29:08 BST 2009 :
Sat Apr 11 19:29:13 BST 2009 :
Sat Apr 11 19:29:18 BST 2009 :
Sat Apr 11 19:29:23 BST 2009 :
Sat Apr 11 19:29:28 BST 2009 :
Sat Apr 11 19:29:33 BST 2009 :
Sat Apr 11 19:29:38 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:29:43 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:29:48 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:29:53 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:29:58 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:03 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:08 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:13 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:18 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
/dev/sdb1            961432072    204628 912389444   1% /tmp/tmp.NqdDbI1699
Sat Apr 11 19:30:23 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:28 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:33 BST 2009 : /dev/sdb1            961432072    204628 912389444   1% /mnt/device/28
Sat Apr 11 19:30:38 BST 2009 :


Is anyone aware of this? If not I will submit to Trac.

Regards,

Chris


29
Developers / 0810 alpha 2 no /usr/pluto/diskless
« on: April 11, 2009, 01:10:27 am »
I have defined an MD and clicked rebuild but it seemed to be instant. I had a snoop around the system and saw /usr/pluto/diskless does not exist. No warning is given by /usr/pluto/bin/Diskless_Setup.sh, yet nothing is created for that MD. I tried creating /usr/pluto/diskless and running the Diskless_Setup again but still nothing is created.

Has anyone seen this?

Chris


30
Developers / ceHTML as the future interface for LinuxMCE?
« on: March 27, 2009, 08:33:21 pm »

ceHTML is about to really take off in a number of hardware devices very shortly (can't name names).

What does anyone think about using it for future LMCE GUIs?

Pages: 1 [2] 3 4 ... 6